To divide a scale, set its startValue and endValue properties. The scale's major and minor ticks will be calculated automatically. Major ticks will be shown by default. To show minor ticks, set their visible property to true. You can set custom major and minor tick intervals, show custom major and minor ticks, and format tick labels. These and other scale properties are available in the scale configuration object.
Specifies whether to allow decimal values on the scale. When false, the scale contains integer values only.
If you set the start and end scale values, major ticks will automatically be calculated and displayed. If you need to add intermediate (minor) ticks between the major ticks, set the visible property of the minorTick configuration object to true. If you need to display a custom ticks set, you can configure it using the customTicks property. Assign an array of custom major tick values to this property.
Major and minor ticks are calculated automatically based on the scale's startValue and endValue property values. Major ticks are made visible by default. You can make minor tick visible as well, using their visible property. In addition, you can set a custom minor tick interval or add custom minor ticks using the tickInterval and customTickValues properties respectively. You can also specify the length, width and color of the minor ticks using corresponding properties.
You can also add custom minor ticks by manually assigning an array of their values to the customTicks property.
Specifies the minimum distance between two neighboring major ticks in pixels.
The distance between major ticks depends on two interrelated properties: scaleDivisionFactor and tickInterval. If the specified tick interval results in a pixel distance between two ticks that is less than the scaleDivisionFactor value, this tick interval is ignored.
Use the scaleDivisionFactor property only if you want to set the distance between ticks when the scale's measurement units are unknown. Otherwise, utilize tickInterval.
Major ticks are calculated automatically based on the scale's startValue and endValue property values. They are visible by default. You can set a custom major tick interval or a custom major ticks set using the tickInterval and customTicks properties respectively. To specify the visibility of major ticks, use the visible property. You can also specify the length, width and color of the major ticks using corresponding properties.