Settings related to axis line.
axisPointer settings on the axis.
Settings related to axis tick.
The boundary gap on both sides of a coordinate axis.
The setting and behavior of category axes and non-category axes are
different. The boundaryGap
of category axis can be set to either
true
or false
. Default value is set to be true
, in which case
axisTick
is served only as a separation line, and labels and data
appear only in the center part of two axis ticks, which is called
band. For non-category axis, including time, numerical value, and
log axes, boundaryGap
is an array of two values, representing the
spanning range between minimum and maximum value.
The value can be set in numeric value or relative percentage,
which becomes invalid after setting min
and max
.
Category data, available in type: 'category'
axis.
If type
is not specified, but axis.data
is specified,
the type
is auto set as 'category'
.
If type is specified as 'category'
,
but axis.data is not specified, axis.data
will be
auto collected from series.data
.
It brings convenience, but we should notice that
axis.data
provides then value range of the 'category'
axis.
If it is auto collected from series.data
,
Only the values appearing in series.data can be collected.
For example, if series.data is empty, nothing will be collected.
The index of grid which this axis belongs to. Defaults to be in the first grid.
Component ID, not specified by default. If specified, it can be used to refer the component in option or API.
Compulsively set segmentation interval for axis.
As splitNumber is a recommendation value,
the calculated tick may not be the same as expected.
In this case, interval should be used along with min and max
to compulsively set tickings.
But in most cases, we do not suggest using this,
out automatic calculation is enough for most situations.
This is unavailable for category axis.
Timestamp should be passed for type: 'time'
axis.
Logged value should be passed for type: 'log'
axis.
Whether axis is inversed. New option from ECharts 3.
Base of logarithm, which is valid only for numeric axes with type:
'log'
.
The maximum value of axis.
It can be set to a special value 'dataMax'
so that
the minimum value on this axis is set to be the maximum label.
It will be automatically computed to make sure axis tick is equally
distributed when not set.
In category axis, it can also be set as the ordinal number.
For example, if a catergory axis has
data: ['categoryA', 'categoryB', 'categoryC']
, and the ordinal 2
represents 'categoryC'
.
Moreover, it can be set as negative number, like -3
.
The minimun value of axis.
It can be set to a special value 'dataMin'
so that
the minimum value on this axis is set to be the minimum label.
It will be automatically computed to make sure axis tick is equally
distributed when not set. In category axis, it can also be set
as the ordinal number.
For example, if a catergory axis has
data: ['categoryA', 'categoryB', 'categoryC']
, and the ordinal 2
represents 'categoryC'
.
Moreover, it can be set as negative number, like -3
.
Maximum gap between split lines.
For example, in time axis (type is 'time'
),
it can be set to be 3600 * 24 * 1000
to make sure
that the gap between axis labels is less than or equal to one day.
Minor SplitLine of axis in grid area.
Settings related to axis minor tick.
Name of axis.
Gap between axis name and axis line.
Location of axis name.
Rotation of axis name.
Text style of axis name.
Offset of this axis relative to default position. Useful when multiple axis of this type has same position value.
It is available only in numerical axis, i.e., type: 'value'
.
It specifies whether not to contain zero position
of axis compulsively.
When it is set to be true
, the axis may not contain zero position,
which is useful in the scatter chart for both value axes.
This configuration item is unavailable when the min
and max
are set.
If show this axis.
True for axis that cannot be interacted with.
Split area of axis in grid area, not shown by default.
SplitLine of axis in grid area.
Number of segments that the axis is split into. Note that this number serves only as a recommendation, and the true segments may be adjusted based on readability. This is unavailable for category axis.
Whether the labels of axis triggers and reacts to mouse events. Parameters of event includes:
z value of all graghical elements in this axis, which controls order of drawing graphical components. Components with smaller z values may be overwritten by those with larger z values. z has a lower priority to zlevel, and will not create new Canvas.
zlevel
value of all graghical elements in this axis.
zlevel
is used to make layers with Canvas.
Graphical elements with different zlevel
values will be placed
in different Canvases, which is a common optimization technique.
We can put those frequently changed elements
(like those with animations) to a seperate zlevel
.
Notice that too many Canvases will increase memory cost,
and should be used carefully on mobile phones to avoid crash.
Canvases with bigger zlevel
will be placed on Canvases
with smaller zlevel
.
Generated using TypeDoc
Settings related to axis label.
https://echarts.apache.org/en/option.html#yAxis.axisLabel