Top
You are looking at an outdated 7.5.0 version of this document. Switch to the 8.0.1 version to see the up to date information.

class anychart.charts.Polar Improve this Doc

Extends: anychart.core.SeparateChart

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.
getType()Returns chart type.
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:

Name Type Default Description
data anychart.data.View | anychart.data.Set | Array
Data for the series.
csvSettings Object.<string, (string|boolean)>
false
If CSV string is passed, you can pass CSV parser settings here as a hash map.

Returns:

anychart.core.polar.series.Area - An instance of class for method chaining.

Try it:

getSeries

Getter series by index.

Params:

Name Type Description
index number

Try it:

getType

Returns chart type.

Returns:

anychart.enums.ChartTypes - Current chart type.

Try it:

grid

Getter for chart grid.

Params:

Name Type Description
index number Chart 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.

Try it:

Setter for first chart grid.

Params:

Name Type Default Description
value Object | boolean | null
true
Chart grid settings to set.

Returns:

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

Params:

Name Type Description
index number Chart grid index.
value Object | boolean | null Chart grid settings to set.

Returns:

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

hatchFillPalette

Chart hatch fill palette settings.

Params:

Name Type Description
value Array.<anychart.graphics.vector.HatchFill.HatchFillType> | Object | anychart.palettes.HatchFills Chart hatch fill palette settings to set.

Returns:

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

Try it:

line

Adds Line series.

Params:

Name Type Default Description
data anychart.data.View | anychart.data.Set | Array | string
Data for the series.
csvSettings Object.<string, (string|boolean)>
false
If CSV string is passed, you can pass CSV parser settings here as a hash map.

Returns:

anychart.core.polar.series.Line - An instance of class for method chaining.

Try it:

marker

Adds Marker series.

Params:

Name Type Default Description
data anychart.data.View | anychart.data.Set | Array | string
Data for the series.
csvSettings Object.<string, (string|boolean)>
true
If CSV string is passed, you can pass CSV parser settings here as a hash map.

Returns:

anychart.core.polar.series.Marker - An instance of class for method chaining.

Try it:

markerPalette

Getter markers palette settings.

Returns:

anychart.palettes.Markers - Current palette.

Try it:

Setter for markers palette settings.

Params:

Name Type Description
value anychart.palettes.Markers | Object | Array.<anychart.enums.MarkerType> Value to set.

Returns:

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

Try it:

minorGrid

Getter for chart minor grid.

Params:

Name Type Description
index number Chart 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.

Try it:

Setter for chart minor grid.

Params:

Name Type Default Description
value Object | boolean | null
false
Chart grid settings to set.

Returns:

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

Params:

Name Type Description
index number Chart grid index.
value Object | boolean | null Chart grid settings to set.

Returns:

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

palette

Getter for series colors palette.

Try it:

Setter for series colors palette.

Params:

Name Type Description
value anychart.palettes.RangeColors | anychart.palettes.DistinctColors | Object | Array.<string> Value to set.

Returns:

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

Try it:

startAngle

Set chart start angle.

Params:

Name Type Default Description
value string | number
0
.

Returns:

string number anychart.charts.Polar - .

Try it:

xAxis

Getter for chart X-axis.

Returns:

anychart.core.axes.Radar - Axis instance by index.

Try it:

Setter for chart X-axis.

Params:

Name Type Default Description
value Object | boolean | null
true
Chart axis settings to set.

Returns:

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

xScale

Getter for default chart X scale.

Returns:

anychart.scales.ScatterBase - Default chart scale value.

Try it:

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:

Name Type Description
value anychart.enums.ScatterScaleTypes | anychart.scales.ScatterBase X Scale to set. Default scale linear.

Returns:

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

Try it:

yAxis

Getter for chart Y-axis.

Returns:

anychart.core.axes.Radial - Axis instance by index.

Try it:

Setter for chart Y-axis.

Params:

Name Type Default Description
value Object | boolean | null
true
Chart axis settings to set.

Returns:

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

yScale

Getter for default chart Y scale.

Returns:

anychart.scales.ScatterBase - Default chart scale value.

Try it:

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:

Name Type Description
value anychart.enums.ScatterScaleTypes | anychart.scales.ScatterBase Y Scale to set. Default scale linear.

Returns:

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

Try it: