AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.scales Improve this Doc

The anychart.scales namespace contains fundamental scales classes and base classes.

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.BaseThe Base class contains methods for all types scales.
anychart.scales.CalendarThe Calendar class contains methods for configuring calendar in the Resource chart.
anychart.scales.DateTimeThe DateTime class contains methods for configuring DateTime scale.
anychart.scales.DateTimeTicksThe DateTimeTicks class contains methods for configuring ticks on the DateTime scale.
anychart.scales.DateTimeWithCalendarThe DateTimeWithCalendar class contains methods for configuring calendar on the DateTime scale.
anychart.scales.GanttDateTimeThe GanttDateTime class contains methods for configuring DateTime scale on the Gantt chart.
anychart.scales.GeoThe Geo class contains methods for configuring Geo scale in the Map.
anychart.scales.GeoTicksThe GeoTicks class contains methods for configuring ticks on the Geo scale.
anychart.scales.LinearThe Linear class contains methods for configuring Linear scale.
anychart.scales.LinearColorThe LinearColor class contains methods for configuring Linear color scale.
anychart.scales.LogarithmicThe Logarithmic class contains methods for configuring Logarithmic scale.
anychart.scales.OrdinalThe Ordinal class contains methods for configuring Ordinal scale.
anychart.scales.OrdinalColorThe OrdinalColor class contains methods for configuring Ordinal color scale.
anychart.scales.OrdinalTicksThe OrdinalTicks class contains methods for configuring ticks on the Ordinal scale.
anychart.scales.ScatterBaseThe ScatterBase class contains methods for configuring all scatter scales (Linear, Logarithmic and DateTime).
anychart.scales.ScatterTicksThe ScatterTicks class contains methods for configuring ticks on the Scatter scale.
anychart.scales.StockOrdinalDateTimeThe StockOrdinalDateTime class contains methods for configuring ordinal date time scale on the Stock.
anychart.scales.StockScatterDateTimeThe StockScatterDateTime class contains methods for configuring scatter datetime scale on the Stock.

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
colorsArray.<Object>Colors set.

Returns:

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