class anychart.scales.Base Improve this Doc
Extends: anychart.core.Base
The Base class contains methods for all types scales.
Methods Overview
Specific settings | |
finishAutoCalc() | Informs the scale that an auto-range calculation started for the chart in past was ended. |
getType() | Returns scale type. |
inverted() | Inversion state. |
startAutoCalc() | Informs scale that an auto-range calculation started for the chart, so it should reset its data range on the first |
Methods Description
finishAutoCalc
Informs the scale that an auto-range calculation started for the chart in past was ended.
Params:
Name | Type | Description |
---|---|---|
silently | boolean | If this flag is set, do not dispatch an event if reapplication needed. |
Returns:
boolean - If the calculation changed the scale and it needs to be reapplied.getType
inverted
Getter for the scale inversion.
Returns:
boolean - The inversion state.Setter for scale inversion.
If the scale is inverted, axes and series go upside-down or right-to-left instead of bottom-to-top and left-to-right.
If the scale is inverted, axes and series go upside-down or right-to-left instead of bottom-to-top and left-to-right.
Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | false | Inverted state to set. |
Returns:
anychart.scales.Base - Self instance for method chaining.Try it:
startAutoCalc
Informs scale that an auto-range calculation started for the chart, so it should reset its data range on the first
call of this method if needed.
Returns:
anychart.scales.Base - Self instance for method chaining.