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 .

    Scales in Chart.js >v2.0 are significantly more powerful, but also different than those of v1.0.

    • Multiple X & Y axes are supported.
    • A built-in label auto-skip feature detects would-be overlapping ticks and labels and removes every nth label to keep things displaying normally.
    • New scale types can be extended without writing an entirely new chart type.

    Namespace:

    Tick Configuration

    Namespace: options.scales[scaleId].ticks

    The suggestedMax and suggestedMin settings only change the data values that are used to scale the axis. These are useful for extending the range of the axis while maintaining the auto fit behaviour.

    In this example, the largest positive value is 50, but the data maximum is expanded out to 100. However, because the lowest data value is below the suggestedMin setting, it is ignored.

    In contrast to the suggested* settings, the min and settings set explicit ends to the axes. When these are set, some data points may not be visible.

    Stacking

    By default data is not stacked. If the stacked option of the value scale (y-axis on horizontal chart) is true, positive and negative values are stacked separately. Additionally a stack option can be defined per dataset to further divide into stack groups more…. For some charts, you might want to stack positive and negative values together. That can be achieved by specifying stacked: 'single'.

    Namespace: options.scales[scaleId]

    The default configuration for a scale can be easily changed. All you need to do is set the new options to .

    For example, to set the minimum value of 0 for all linear scales, you would do the following. Any linear scales created after this time would now have a minimum of 0.

    Creating New Axes

    To create a new axis, see the .