Multiple Cartesian axes
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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access