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.Base | The Base class contains methods for all types scales. |
anychart.scales.Calendar | The Calendar class contains methods for configuring calendar in the Resource chart. |
anychart.scales.DateTime | The DateTime class contains methods for configuring DateTime scale. |
anychart.scales.DateTimeTicks | The DateTimeTicks class contains methods for configuring ticks on the DateTime scale. |
anychart.scales.DateTimeWithCalendar | The DateTimeWithCalendar class contains methods for configuring calendar on the DateTime scale. |
anychart.scales.GanttDateTime | The GanttDateTime class contains methods for configuring DateTime scale on the Gantt chart. |
anychart.scales.Geo | The Geo class contains methods for configuring Geo scale in the Map. |
anychart.scales.GeoTicks | The GeoTicks class contains methods for configuring ticks on the Geo scale. |
anychart.scales.Linear | The Linear class contains methods for configuring Linear scale. |
anychart.scales.LinearColor | The LinearColor class contains methods for configuring Linear color scale. |
anychart.scales.Logarithmic | The Logarithmic class contains methods for configuring Logarithmic scale. |
anychart.scales.Ordinal | The Ordinal class contains methods for configuring Ordinal scale. |
anychart.scales.OrdinalColor | The OrdinalColor class contains methods for configuring Ordinal color scale. |
anychart.scales.OrdinalTicks | The OrdinalTicks class contains methods for configuring ticks on the Ordinal scale. |
anychart.scales.ScatterBase | The ScatterBase class contains methods for configuring all scatter scales (Linear, Logarithmic and DateTime). |
anychart.scales.ScatterTicks | The ScatterTicks class contains methods for configuring ticks on the Scatter scale. |
anychart.scales.StockOrdinalDateTime | The StockOrdinalDateTime class contains methods for configuring ordinal date time scale on the Stock. |
anychart.scales.StockScatterDateTime | The StockScatterDateTime class contains methods for configuring scatter datetime scale on the Stock. |
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.ordinal
ordinalColor
Constructor function for linear color scale.
Params:
Name | Type | Description |
---|---|---|
colors | Array.<Object> | Colors set. |
Returns:
anychart.scales.OrdinalColor - Self instance for method chaining.Try it: