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

class anychart.scales.Logarithmic Improve this Doc

Extends: anychart.scales.Linear

Define Logarithmic scale.
Note: To create instance use method anychart.scales.log.

Methods Overview

Miscellaneous
inverseTransform()Returns tick by its position ratio.
logBase()Getter for Log base value.
transform()Returns tick position ratio by its name.

Methods Description

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:

logBase

Getter for Log base value.

Returns:

number - Current Log base.
Setter for Log base value.
Note: Affects tick values auto calculation.

Params:

Name Type Default Description
value number
10
Log base to set. Takes any number greater than 1.

Returns:

anychart.scales.Logarithmic - An instance of anychart.scales.Logarithmic class 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: