We can config the title, tick, type .etc of the axis.
The title can be set through title config, or by the scale config.
Note that the scale config is just like the scale function in native js version of g2.
case study:
By create a html type guide, and place it at position ['100%', '100%'], and set the offsetX and
offsetY properly, we can simulate the axis title at the end of x axis.
composing parts of g2
The elements of a chart in g2 are:
axis
We can config the
title
,tick
,type
.etc of the axis. Thetitle
can be set through title config, or by thescale
config. Note that thescale
config is just like thescale
function in native js version of g2.guide
case study: By create a
html
type guide, and place it at position['100%', '100%']
, and set theoffsetX
andoffsetY
properly, we can simulate the axis title at the end of x axis.