AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.3.1 version of this document. Switch to the 8.4.0 version to see the up to date information.

class anychart.charts.Polar Improve this Doc

Extends: anychart.core.Chart

Polar chart class.
To get the chart use method anychart.polar.
Chart can contain any number of series.
Each series is interactive, you can customize click and hover behavior and other params.

Methods Overview

Miscellaneous
area()Adds Area series.
getSeries()Getter series by index.
grid()Getter for chart grid.
hatchFillPalette()Chart hatch fill palette settings.
line()Adds Line series.
marker()Adds Marker series.
markerPalette()Getter markers palette settings.
minorGrid()Getter for chart minor grid.
palette()Getter for series colors palette.
startAngle()Set chart start angle.
xAxis()Getter for chart X-axis.
xScale()Getter for default chart X scale.
yAxis()Getter for chart Y-axis.
yScale()Getter for default chart Y scale.

Methods Description

area

Adds Area series.

Params:

NameTypeDescription
dataanychart.data.View | anychart.data.Set | ArrayData for the series.
csvSettingsObject.<string, (string|boolean)>If CSV string is passed, you can pass CSV parser settings here as a hash map.

getSeries

Getter series by index.

Params:

NameTypeDescription
indexnumber

grid

Getter for chart grid.

Params:

NameTypeDescription
indexnumberChart grid index. If not set - creates a new instance and adds it to the end of array.

Returns:

anychart.core.grids.Polar - Axis instance by index.
Setter for first chart grid.

Params:

NameTypeDescription
valueObject | boolean | nullChart grid settings to set.

Returns:

anychart.charts.Polar - anychart.charts.Polar instance for method chaining.
Setter for chart grid by index.

Params:

NameTypeDescription
indexnumberChart grid index.
valueObject | boolean | nullChart grid settings to set.
Note: pass null or 'none' to disable the grid.

Returns:

anychart.charts.Polar - anychart.charts.Polar class for method chaining.

hatchFillPalette

Chart hatch fill palette settings.

Params:

NameTypeDescription
valueArray.<anychart.graphics.vector.HatchFill.HatchFillType> | Object | anychart.palettes.HatchFillsChart hatch fill palette settings to set.

Returns:

anychart.palettes.HatchFills | anychart.charts.Polar - Return current chart hatch fill palette or itself for chaining call.

line

Adds Line series.

Params:

NameTypeDescription
dataanychart.data.View | anychart.data.Set | Array | stringData for the series.
csvSettingsObject.<string, (string|boolean)>If CSV string is passed, you can pass CSV parser settings here as a hash map.

marker

Adds Marker series.

Params:

NameTypeDescription
dataanychart.data.View | anychart.data.Set | Array | stringData for the series.
csvSettingsObject.<string, (string|boolean)>If CSV string is passed, you can pass CSV parser settings here as a hash map.

markerPalette

Getter markers palette settings.

Returns:

anychart.palettes.Markers - Current palette.
Setter for markers palette settings.

Params:

NameTypeDescription
valueanychart.palettes.Markers | Object | Array.<anychart.enums.MarkerType>Value to set.

Returns:

anychart.charts.Polar - anychart.charts.Polar instance for method chaining.

minorGrid

Getter for chart minor grid.

Params:

NameTypeDescription
indexnumberChart grid index. If not set - creates a new instance and adds it to the end of array.

Returns:

anychart.core.grids.Polar - Axis instance by index.
Setter for chart minor grid.

Params:

NameTypeDescription
valueObject | boolean | nullChart grid settings to set.

Returns:

anychart.charts.Polar - anychart.charts.Polar instance for method chaining.
Setter for chart minor grid by index.

Params:

NameTypeDescription
indexnumberChart grid index.
valueObject | boolean | nullChart grid settings to set.
Note: pass null or 'none' to disable the grid.

Returns:

anychart.charts.Polar - anychart.charts.Polar class for method chaining.

palette

Getter for series colors palette.
Setter for series colors palette.

Params:

NameTypeDescription
valueanychart.palettes.RangeColors | anychart.palettes.DistinctColors | Object | Array.<string>Value to set.

Returns:

anychart.charts.Polar - anychart.charts.Polar instance for method chaining.

startAngle

Set chart start angle.

Params:

NameTypeDescription
valuestring | number.

Returns:

string | number | anychart.charts.Polar - .

xAxis

Getter for chart X-axis.

Returns:

anychart.core.axes.Radar - Axis instance by index.
Setter for chart X-axis by index.

Params:

NameTypeDescription
valueObject | string | nullChart axis settings to set.

Returns:

anychart.charts.Radar - anychart.charts.Radar instance for method chaining.

xScale

Getter for default chart X scale.

Returns:

anychart.scales.ScatterBase - Default chart scale value.
Setter for default chart X scale.
Note: This scale will be passed to all scale dependent chart elements if they don't have their own scales.

Params:

NameTypeDescription
valueanychart.enums.ScatterScaleTypes | anychart.scales.ScatterBaseX Scale to set.

Returns:

anychart.charts.Polar - anychart.charts.Polar instance for method chaining.

yAxis

Getter for chart Y-axis.

Returns:

anychart.core.axes.Radial - Axis instance by index.
Setter for chart Y-axis by index.

Params:

NameTypeDescription
valueObject | boolean | nullChart axis settings to set.

Returns:

anychart.charts.Polar - anychart.charts.Polar instance for method chaining.

yScale

Getter for default chart Y scale.

Returns:

anychart.scales.ScatterBase - Default chart scale value.
Setter for default chart Y scale.
Note: This scale will be passed to all scale dependent chart elements if they don't have their own scales.

Params:

NameTypeDescription
valueanychart.enums.ScatterScaleTypes | anychart.scales.ScatterBaseY Scale to set.

Returns:

anychart.charts.Polar - anychart.charts.Polar instance for method chaining.