AnyChart
API Reference
Still have questions?
Contact support
Top

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:

NameTypeDescription
settingsObjectColor 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:

NameTypeDescription
settingsanychart.scales.OrdinalColor | anychart.scales.LinearColor | Object | anychart.enums.ScaleTypes | stringColor 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:

NameTypeDescription
dataanychart.data.View | anychart.data.Mapping | anychart.data.Set | Array | string | anychart.data.DataSettingsValue to set.
csvSettingsanychart.enums.TextParsingMode | string | anychart.data.TextParsingSettingsIf 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:

NameTypeDescription
settingsObjectDays 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:

NameTypeDescription
settingsObjectMonths 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.

Params:

NameTypeDescription
settingsObject | boolean | nullValue 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:

NameTypeDescription
settingsObjectWeeks 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:

NameTypeDescription
settingsObjectYears settings to set.

Returns:

anychart.charts.Calendar - Self instance for method chaining.