new Chart(options)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Properties
|
- Implements:
- ol.structs.IHasChecksum
- See:
Extends
- ol.style.RegularShape
Members
-
<static> colors
-
Default color set: classic, dark, pale, pastel, neon
Methods
-
clone()
-
Clones the style.
Returns:
- Type
- ol.style.Chart
-
getData()
-
Get data associatied with the chart
-
getRadius()
-
Get symbol radius
-
setAnimation(false)
-
Set animation step
Parameters:
Name Type Description false
false | number to stop animation or the step of the animation [0,1]
-
setData(data)
-
Set data associatied with the chart
Parameters:
Name Type Description data
Array.<number> -
setRadius(symbol, donut)
-
Set symbol radius
Parameters:
Name Type Description symbol
number radius
donut
number ratio