Axes
In a radial chart, such as a radar chart or a polar area chart, there is a single axis that maps points in the angular and radial directions. These are known as .
- Multiple X & Y axes are supported.
- Scale titles are supported
- New scale types can be extended without writing an entirely new chart type
Common Configuration
The following properties are common to all axes provided by Chart.js
Name | Arguments | Description |
---|---|---|
beforeUpdate | axis | Callback called before the update process starts. |
beforeSetDimensions | Callback that runs before dimensions are set. | |
afterSetDimensions | axis | Callback that runs after dimensions are set. |
beforeDataLimits | axis | Callback that runs before data limits are determined. |
afterDataLimits | axis | Callback that runs after data limits are determined. |
beforeBuildTicks | axis | Callback that runs before ticks are created. |
afterBuildTicks | axis | Callback that runs after ticks are created. Useful for filtering ticks. |
beforeTickToLabelConversion | Callback that runs before ticks are converted into strings. | |
afterTickToLabelConversion | axis | Callback that runs after ticks are converted into strings. |
beforeCalculateTickRotation | axis | Callback that runs before tick rotation is determined. |
afterCalculateTickRotation | axis | Callback that runs after tick rotation is determined. |
beforeFit | axis | Callback that runs before the scale fits to the canvas. |
afterFit | axis | Callback that runs after the scale fits to the canvas. |
afterUpdate | Callback that runs at the end of the update process. |
The default configuration for a scale can be easily changed using the scale service. All you need to do is to pass in a partial configuration that will be merged with the current scale default configuration to form the new default.
To create a new axis, see the .