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

class anychart.scales.Base Improve this Doc

Extends: anychart.Base

Methods Overview

Miscellaneous
finishAutoCalc()Informs the scale that an auto range calculation started for the chart in past was ended.
inverted()Getter and setter for scale inversion. If the scale is inverted, axes and series go upside-down or right-to-left
stackMode()Accepts 'none', 'value', 'percent'.
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 and 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 Description
value boolean Inverted state to set.

Returns:

anychart.scales.Base boolean - Inverted state or itself for method chaining.

stackMode

Accepts 'none', 'value', 'percent'.

Params:

Name Type Description
stackMode anychart.enums.ScaleStackMode Stack mode if used as a setter.

Returns:

anychart.scales.Base anychart.enums.ScaleStackMode - StackMode or itself for method chaining.

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.