AnyChart
API Reference
Still have questions?
Contact support
Top

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:

NameTypeDescription
silentlybooleanIf 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

Returns scale type.

Returns:

string - Scale type.

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.

Params:

NameTypeDefaultDescription
enabledboolean
false
Inverted state to set.

Returns:

anychart.scales.Base - Self instance 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 - Self instance for method chaining.