Cartesian grids are used in scatter, bubble, bar, and line charts, and contain two sets of scales, one for each perpendicular axis. They are configured in an object assigned to the options.scales property:
options: {
scales: {
xAxes: [{…}, ..., {…}], // array of x-axis objects
yAxes: [{…}, ..., {…}] // array of y-axis objects
}
}
You can have multiple axes of each type. They can be stacked, placed side by side, or positioned on opposite sides. Each axis may be linked to a specific dataset.
Polar area and radar charts use radial scales and configure a single options.scale property:
options: {
scale: {
{…} // axis object containing configuration for the radial axis
}
}
All axis configuration objects in Cartesian charts and the scale property in radial charts contain a display...