Top
You are looking at an outdated 7.6.0 version of this document. Switch to the 8.0.1 version to see the up to date information.

class anychart.scales.Base Improve this Doc

Extends: anychart.core.Base

Basic methods for scales.

Methods Overview

Miscellaneous
finishAutoCalc()Informs the scale that an auto range calculation started for the chart in past was ended.
inverted()Getter for scale inversion.
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.

inverted

Getter for scale inversion.

Returns:

boolean - Current 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.

Params:

Name Type Default Description
value boolean
false
Value 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 - Chaining.