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

class anychart.core.radar.series.Area Improve this Doc

Extends: anychart.core.radar.series.ContinuousBase

Define Area series type.
Note: Better for use method anychart.charts.Radar#area.

Methods Overview

Miscellaneous
fill()Getter for current series fill color.
hatchFill()Getter for current hatch fill settings.
stroke()Getter for current stroke settings.

Methods Description

fill

Getter for current series fill color.

Returns:

anychart.graphics.vector.Fill - Current fill color.
Sets fill settings using an object or a string.
Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
null
Color as an object or a string.

Returns:

anychart.core.radar.series.Area - Self instance for method chaining.
Sets fill settings using function.

Params:

Name Type Default Description
fillFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by fill() getter. // this.iterator - series point iterator. return fillValue; // type anychart.graphics.vector.Fill }.

Returns:

anychart.core.radar.series.Area - Self instance for method chaining. chaining.

Try it:

Fill color with opacity.
Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.radar.series.Area - Self instance for method chaining.

Try it:

Linear gradient fill.
Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Gradient keys.
angle number Gradient angle.
mode boolean | anychart.graphics.vector.Rect | Object Gradient mode.
opacity number Gradient opacity.

Returns:

anychart.core.radar.series.Area - Self instance for method chaining.

Try it:

Radial gradient fill.
Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

Name Type Description
keys Array.<(anychart.graphics.vector.GradientKey|string)> Color-stop gradient keys.
cx number X ratio of center radial gradient.
cy number Y ratio of center radial gradient.
mode anychart.graphics.math.Rect If defined then userSpaceOnUse mode, else objectBoundingBox.
opacity number Opacity of the gradient.
fx number X ratio of focal point.
fy number Y ratio of focal point.

Returns:

anychart.core.radar.series.Area - Self instance for method chaining.

Try it:

Image fill.
Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_Fill

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.radar.series.Area - Self instance for method chaining.

Try it:

hatchFill

Getter for current hatch fill settings.
Setter for hatch fill settings.
Learn more about coloring at: https://docs.anychart.com/7.4.0/General_settings/Elements_HatchFill

Params:

Name Type Default Description
patternFillOrType anychart.graphics.vector.PatternFill | anychart.graphics.vector.HatchFill | function | anychart.graphics.vector.HatchFill.HatchFillType | string
false
PatternFill or HatchFill instance or type of hatch fill.
color string
Color.
thickness number
Thickness.
size number
Pattern size.

Returns:

anychart.core.radar.series.Area - Self instance for method chaining.

Try it:

stroke

Getter for current stroke settings.

Returns:

anychart.graphics.vector.Stroke - Current stroke settings.
Setter for series stroke by function.

Params:

Name Type Default Description
fillFunction function
function() {
 return anychart.color.darken(this.sourceColor);
}
Function that looks like function(){ // this.index - series index. // this.sourceColor - color returned by stroke() getter. // this.iterator - series point iterator. return strokeValue; // type anychart.graphics.vector.Fill or anychart.graphics.vector.Stroke }.

Returns:

anychart.core.radar.series.Area - Self instance for method chaining.

Try it:

Setter for stroke settings.
Learn more about stroke settings: https://docs.anychart.com/7.4.0/General_settings/Elements_Stroke

Params:

Name Type Default Description
strokeOrFill anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null
Fill settings or stroke settings.
thickness number
1
Line thickness.
dashpattern string
Controls the pattern of dashes and gaps used to stroke paths.
lineJoin anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.radar.series.Area - Self instance for method chaining.

Try it: