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

class anychart.charts.Radar Improve this Doc

Extends: anychart.core.SeparateChart

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

Methods Overview

Specific settings
getType()Definition of the chart type.
startAngle()Chart start angle.
Axes and Scales
grid()Grid settings.
minorGrid()Minor grid settings.
xAxis()X-axis settings.
xScale()X-scale settings.
yAxis()Y-axis settings.
yScale()Y-scale settings.
Chart Coloring
markerPalette()Marker palette settings.
palette()Palette settings.
Series
area()Addition of the area series.
getSeries()Gets series by index.
line()Addition of the line series.
marker()Addition of the marker series.

Methods Description

area

Adds Area series.

Params:

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

Returns:

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

Try it:

getSeries

Getter series by index.

Params:

Name Type Description
index number Series index.

Returns:

anychart.core.radar.series.Base - An instance of class for method chaining

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.Radar - Axis instance by index.

Try it:

Setter for chart grid.

Params:

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

Returns:

anychart.charts.Radar - 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.Radar - Self instance for method chaining.

line

Adds Line series.

Params:

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

Returns:

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

Try it:

marker

Adds Marker series.

Params:

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

Returns:

anychart.core.radar.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.Radar - 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.Radar - 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.Radar - 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.Radar - 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.Radar - Self instance for method chaining.

Try it:

startAngle

Getter for the current chart start angle.

Returns:

string number - The current chart start angle.

Try it:

Setter for the chart start angle.

Params:

Name Type Default Description
value string | number
0
Value to set.

Returns:

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

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.Ordinal - 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 Default Description
value anychart.scales.Ordinal
"ordinal"
X Scale to set.

Returns:

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

Try it:

yAxis

Getter for chart Y-axis.

Returns:

anychart.core.axes.Radar - 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.Radar - Self instance for method chaining.

yScale

Getter for default chart Y scale.

Returns:

anychart.scales.Base - 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 Default Description
value anychart.scales.Base | anychart.enums.ScaleTypes
"linear"
Y Scale to set.

Returns:

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

Try it: