This section contains a brief overview on some configurations that you will probably not use very often. For more details on these topics, refer to the official documentation.
You only need two axes to plot data in a two-dimensional Cartesian grid, but you can add more if you need to. You may wish to repeat axis titles or tick labels on both sides of a chart for clarity. You may also wish to show two datasets with different scales (although this is usually a bad practice in data visualization).
If you have multiple axes, you can control their positions with the axis.weight
and axis.position
properties. Unless you connect an axis to a specific dataset using the id
property, the first axis in the yAxis
array will be used for all datasets. A dataset is linked to an axis using the yAxisID
or xAxisID
properties that reference the ID of an axis. See Advanced/adv-1-position-evil.html
for an example.
The following code fragment configures three axes...