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.Base | Basic methods for scales. |
anychart.scales.Calendar | Calendar scale. |
anychart.scales.DateTime | Define Datetime scale. |
anychart.scales.DateTimeTicks | Scale ticks. |
anychart.scales.DateTimeWithCalendar | Date scale with calendar support. |
anychart.scales.GanttDateTime | Gantt date time scale. |
anychart.scales.Geo | Define geo scale. |
anychart.scales.GeoTicks | Map geo scale ticks. |
anychart.scales.Linear | Represents simple linear scale that transforms values from domain [a, b] to domain [0, 1]. |
anychart.scales.LinearColor | Linear color scale. |
anychart.scales.Logarithmic | Define Logarithmic scale. |
anychart.scales.Ordinal | Define Ordinal scale. |
anychart.scales.OrdinalColor | Define Ordinal scale. |
anychart.scales.OrdinalTicks | Scale ticks settings. |
anychart.scales.ScatterBase | Base for all scatter scales (Linear, Logarithmic and DateTime). |
anychart.scales.ScatterTicks | Scale ticks. |
anychart.scales.StockOrdinalDateTime | Stock ordinal date time scale. |
anychart.scales.StockScatterDateTime | Stock 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
linear
linearColor
Constructor function for the linear color scale.
Params:
Name | Type | Description |
---|---|---|
var_args | string | anychart.graphics.vector.SolidFill | anychart.graphics.vector.LinearGradientFill | anychart.graphics.vector.RadialGradientFill | Array.<(string|anychart.graphics.vector.SolidFill|anychart.graphics.vector.LinearGradientFill|anychart.graphics.vector.RadialGradientFill)> | Colors set. |
Returns:
anychart.scales.LinearColor - Self instance for method chaining.Try it:
log
Constructor function for logarithmic scale.
Returns:
anychart.scales.Logarithmic - Logarithmic scale.Try it:
ordinal
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: