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

class anychart.scales.ScatterBase Improve this Doc

Extends: anychart.scales.Base

Base for all scatter scales (Linear, Logarithmic and DateTime). Doesn't declare any ticks, so different scales can declare their own.

Methods Overview

Miscellaneous
extendDataRange()Extends the current input domain with the passed values (if such don't exist in the domain).
inverseTransform()Returns tick by its position ratio.
maximum()Getter for scale maximum.
maximumGap()Setter for scale maximum gap.
minimum()Getter for scale minimum.
minimumGap()Setter for scale minimum gap.
transform()Returns tick position ratio by its name.

Methods Description

extendDataRange

Extends the current input domain with the passed values (if such don't exist in the domain).
Note: Attention! anychart.scales.Base#finishAutoCalc drops all passed values.

Params:

Name Type Description
var_args * Values that are supposed to extend the input domain.

Returns:

anychart.scales.ScatterBase - anychart.scales.ScatterBase instance for method chaining.

inverseTransform

Returns tick by its position ratio.
Note: returns correct values only after anychart.scales.Base#finishAutoCalc or chart.draw().

Params:

Name Type Description
ratio number Value to transform in input scope.

Returns:

* - Value transformed to output scope.

Try it:

maximum

Getter for scale maximum.

Returns:

number - Current scale maximum.
Setter for scale maximum.

Params:

Name Type Description
value number Value to set.

Returns:

anychart.scales.ScatterBase - An instance of anychart.scales.ScatterBase class for method chaining.

Try it:

maximumGap

Getter for scale maximum gap.

Returns:

number - Current scale maximum gap.
Scale maximum gap.
Note: Gap works only if scale minimum is not set explicitly using anychart.scales.ScatterBase#maximum.

Params:

Name Type Description
value number Value from 0 to 1.

Returns:

anychart.scales.ScatterBase - anychart.scales.ScatterBase instance for method chaining.

Try it:

minimum

Getter for scale minimum.

Returns:

number - Current scale minimum.
Setter for scale minimum.

Params:

Name Type Description
value number Value to set.

Returns:

anychart.scales.ScatterBase - An instance of anychart.scales.ScatterBase class for method chaining.

Try it:

minimumGap

Getter for scale minimum gap.

Returns:

number - Current scale minimum gap.
Scale minimum gap.
Note: Gap works only if scale minimum is not set explicitly using anychart.scales.ScatterBase#minimum.

Params:

Name Type Description
value number Value from 0 to 1.

Returns:

anychart.scales.ScatterBase - anychart.scales.ScatterBase instance for method chaining.

Try it:

transform

Returns tick position ratio by its name.
Note: returns correct values only after anychart.scales.Base#finishAutoCalc or chart.draw().

Params:

Name Type Description
value * Value to transform in input scope.

Returns:

number - Value transformed to scope [0, 1].

Try it: