Callbacks
There are a number of config callbacks that can be used to change parameters in the scale at different points in the update process. The options are supplied at the top level of the axis options.
Namespace: options.scales[scaleId]
BeforeUpdate¶
Callback called before the update process starts.
AfterUpdate¶
Callback that runs at the end of the update process.
BeforeSetDimensions¶
Callback that runs before dimensions are set.
AfterSetDimensions¶
Callback that runs after dimensions are set.
BeforeDataLimits¶
Callback that runs before data limits are determined.
AfterDataLimits¶
Callback that runs after data limits are determined.
BeforeBuildTicks¶
Callback that runs before ticks are created.
AfterBuildTicks¶
Callback that runs after ticks are created. Useful for filtering ticks.
BeforeTickToLabelConversion¶
Callback that runs before ticks are converted into strings.
AfterTickToLabelConversion¶
Callback that runs after ticks are converted into strings.
BeforeCalculateLabelRotation¶
Callback that runs before tick rotation is determined.
AfterCalculateLabelRotation¶
Callback that runs after tick rotation is determined.
BeforeFit¶
Callback that runs before the scale fits to the canvas.
AfterFit¶
Callback that runs after the scale fits to the canvas.