AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 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:

NameTypeDescription
parentCalendaranychart.scales.CalendarInstance 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.

linear

Constructor function for linear scale.

Returns:

anychart.scales.Linear - Linear scale.

log

Constructor function for logarithmic scale.

Returns:

anychart.scales.Logarithmic - Logarithmic scale.

ordinal

Constructor function for ordinal scale.

Returns:

anychart.scales.Ordinal - Ordinal scale.

ordinalColor

Constructor function for linear color scale.

Params:

NameTypeDescription
valueArray.<Object>Colors set.

Returns:

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