class anychart.charts.Calendar Improve this Doc
Extends: anychart.core.SeparateChart
Calendar chart class.
Note: Use anychart#calendar method to get an instance of this class.
Learn more about Calendar Chart
Methods Overview
Specific settings | |
days() | Days settings. |
months() | Months settings. |
weeks() | Weeks settings. |
years() | Years settings. |
Chart Controls | |
colorRange() | Color range settings. |
Data | |
data() | Data settings. |
Interactivity | |
tooltip() | Tooltip settings. |
Scales | |
colorScale() | Color scale settings. |
Methods Description
colorRange
Getter for the color range.
Returns:
anychart.core.ui.ColorRange - Color range.Setter for the color range.
Params:
Name | Type | Description |
---|---|---|
settings | Object | Color range settings to set. |
Returns:
anychart.charts.Calendar - Self instance for method chaining.colorScale
Getter for the color scale.
See listing.
var colorScale = chart.colorScale();
Setter for the color scale.
Params:
Name | Type | Description |
---|---|---|
settings | anychart.scales.OrdinalColor | anychart.scales.LinearColor | Object | anychart.enums.ScaleTypes | string | Color scale to set. |
Returns:
anychart.charts.Calendar - Self instance for method chaining.data
Getter for the chart data.
Returns:
anychart.data.View - Data view.Setter for the data for the chart.
Params:
Name | Type | Description |
---|---|---|
data | anychart.data.View | anychart.data.Mapping | anychart.data.Set | Array | string | anychart.data.DataSettings | Value to set. |
csvSettings | anychart.enums.TextParsingMode | string | anychart.data.TextParsingSettings | If CSV string is passed by first param, you can pass CSV parser settings here as a hash map. |
Returns:
anychart.charts.Calendar - Self instance for method chaining.days
Getter for days settings.
Returns:
anychart.core.calendar.settings.Days - Days settings.Setter for days settings.
Params:
Name | Type | Description |
---|---|---|
settings | Object | Days settings to set. |
Returns:
anychart.charts.Calendar - Self instance for method chaining.months
Getter for months settings.
Returns:
anychart.core.calendar.settings.Months - Months settings.Setter for months settings.
Params:
Name | Type | Description |
---|---|---|
settings | Object | Months settings to set. |
Returns:
anychart.charts.Calendar - Self instance for method chaining.tooltip
Getter for chart tooltip.
Returns:
anychart.core.ui.Tooltip - Tooltip instance.Setter for chart tooltip.
Detailed description
Sets tooltip settings depending on parameter type:
- null/boolean - disable or enable tooltip.
- object - sets tooltip settings.
Params:
Name | Type | Description |
---|---|---|
settings | Object | boolean | null | Value to set. |
Returns:
anychart.charts.Calendar - Self instance for method chaining.weeks
Getter for weeks settings.
Returns:
anychart.core.calendar.settings.Weeks - Days settings.Setter for weeks settings.
Params:
Name | Type | Description |
---|---|---|
settings | Object | Weeks settings to set. |
Returns:
anychart.charts.Calendar - Self instance for method chaining.years
Getter for years settings.
Returns:
anychart.core.calendar.settings.Years - Years settings.Setter for years settings.
Params:
Name | Type | Description |
---|---|---|
settings | Object | Years settings to set. |
Returns:
anychart.charts.Calendar - Self instance for method chaining.