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 'radial axes'.

  • 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

NameArgumentsDescription
beforeUpdateaxisCallback called before the update process starts.
beforeSetDimensionsCallback that runs before dimensions are set.
afterSetDimensionsaxisCallback that runs after dimensions are set.
beforeDataLimitsaxisCallback that runs before data limits are determined.
afterDataLimitsaxisCallback that runs after data limits are determined.
beforeBuildTicksaxisCallback that runs before ticks are created.
afterBuildTicksaxisCallback that runs after ticks are created. Useful for filtering ticks.
beforeTickToLabelConversionCallback that runs before ticks are converted into strings.
afterTickToLabelConversionaxisCallback that runs after ticks are converted into strings.
beforeCalculateTickRotationaxisCallback that runs before tick rotation is determined.
afterCalculateTickRotationaxisCallback that runs after tick rotation is determined.
beforeFitaxisCallback that runs before the scale fits to the canvas.
afterFitaxisCallback that runs after the scale fits to the canvas.
afterUpdateCallback 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 .