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

namespace anychart.scales Improve this Doc

Namespace for scales.

Functions Overview

calendar()Constructor function for the calendar.
dateTime()Constructor function for DateTime scale.
linear()Constructor function for linear scale.
linearColor()Constructor function for the linear color scale.
log()Constructor function for logarithmic scale.
ordinal()Constructor function for ordinal scale.
ordinalColor()Constructor function for linear color scale.

Classes Overview

anychart.scales.BaseBasic methods for scales.
anychart.scales.CalendarCalendar scale.
anychart.scales.DateTimeDefine Datetime scale.
anychart.scales.DateTimeTicksScale ticks.
anychart.scales.DateTimeWithCalendarDate scale with calendar support.
anychart.scales.GanttDateTimeGantt date time scale.
anychart.scales.GeoDefine geo scale.
anychart.scales.GeoTicksMap geo scale ticks.
anychart.scales.LinearRepresents simple linear scale that transforms values from domain [a, b] to domain [0, 1].
anychart.scales.LinearColorLinear color scale.
anychart.scales.LogarithmicDefine Logarithmic scale.
anychart.scales.OrdinalDefine Ordinal scale.
anychart.scales.OrdinalColorDefine Ordinal scale.
anychart.scales.OrdinalTicksScale ticks settings.
anychart.scales.ScatterBaseBase for all scatter scales (Linear, Logarithmic and DateTime).
anychart.scales.ScatterTicksScale ticks.
anychart.scales.StockOrdinalDateTimeStock ordinal date time scale.
anychart.scales.StockScatterDateTimeStock scatter datetime scale class.

Functions Description

calendar

Constructor function for the calendar.

Params:

Name Type Description
parentCalendar anychart.scales.Calendar Instance of parent calendar.

Returns:

anychart.scales.Calendar - Self instance for method chaining.
Create two calendars
var parentCalendar = anychart.scales.calendar();
parentCalendar.availabilities([
  // Set some availabilities
]);
var childCalendar = anychart.scales.calendar(parentCalendar);
// Child calendar include parent's availabilities.
childCalendar.availabilities([
  // Set advanced availabilities
]);

dateTime

Constructor function for DateTime scale.

Returns:

anychart.scales.DateTime - DateTime scale.

Try it:

linear

Constructor function for linear scale.

Returns:

anychart.scales.Linear - Linear scale.

Try it:

log

Constructor function for logarithmic scale.

Returns:

anychart.scales.Logarithmic - Logarithmic scale.

Try it:

ordinal

Constructor function for ordinal scale.

Returns:

anychart.scales.Ordinal - Ordinal scale.

Try it:

ordinalColor

Constructor function for linear color scale.

Params:

Name Type Description
value Array.<Object> Colors set.

Returns:

anychart.scales.OrdinalColor - Self instance for method chaining.

Try it: