chart.axis(false)
chart.axis(field, false)
field
: String type, the data field name corresponding to the axischart.axis(field, config)
field
: String type, the data field name corresponding to the axisconfig
: Object type, configuration for the axis. It can be used to configure each component of the axis: include label, line, tick, tickLine and grid.The properties included are as follows:line
{ stroke: '#e8e8e8', lineWidth: 1 }
line
set to null
. It supports all html5 canvas's line attributes, see canvas for more details.labelOffset
7.5
grid
{ type: 'line', stroke: '#e8e8e8', lineWidth: 1, lineDash: [ 2 ] }
tickLine
null
tickLine
is set to null
. It supports all html5 canvas's line attributes, see canvas for more details.label
{ fill: '#808080', fontSize: 10 }
position
'left'
top
false
true
represents the top layer level, false
means the bottom layer level.line
, grid
, label
, tickLine
all have a property top
which is used to adjust the display layer, true
represents the top layer, false
means the bottom layer level.null
or undefined
the label and the associated grid line will be hidden.