Remove the component from rendering.
If the Component supports it, this can be reverted with restore() method.
Object itself for fluent interface.
Get polygon geometry as a list of PolarPoints.
NOTE: points have to be in either clockwise or counter-clockwise order
List of PolarPoints that form the contour of the desired polygon. Automatically closed.
True if the component is currently disposed, and thus not being rendered. If the Component supports it, this can be reverted with restore() method.
After the Components dispose() method has been called, removing it from rendering, restore() can be used to return it back.
Object itself for fluent interface.
Set polygon geometry as a list of PolarPoints.
NOTE: points have to be in either clockwise or counter-clockwise order. The polygon coordinates should also not intersect with themselves.
Example usage:
let ang = 45
let amplitude = 50
polarPolygon.setGeometry([
{ angle: (ang += 10), amplitude: (amplitude += 10) },
{ angle: (ang += 10), amplitude: (amplitude += 5) },
{ angle: (ang += 10), amplitude: (amplitude += 10) },
{ angle: (ang += 10), amplitude: (amplitude -= 5) },
{ angle: (ang += 10), amplitude: (amplitude += 5) },
{ angle: (ang += 5), amplitude: (amplitude -= 5) },
{ angle: (ang += 0), amplitude: (amplitude -= 10) },
{ angle: (ang -= 5), amplitude: (amplitude -= 5) },
{ angle: (ang -= 10), amplitude: (amplitude -= 10) },
{ angle: (ang -= 10), amplitude: (amplitude -= 5) },
{ angle: (ang -= 10), amplitude: (amplitude += 5) },
{ angle: (ang -= 10), amplitude: (amplitude += 10) },
])
List of PolarPoints that form the contour of the desired polygon. Automatically closed.
Set mouse interactions enabled or disabled
Specifies state of mouse interactions
Object itself for fluent interface
Class that represents a single polygon from the collection of a PolarPolygonSeries.
The geometry of the polygon can be mutated at any time, and it can be disposed and restored whenever.
Note, that the style of PolarPolygons is managed by the owning PolarPolygonSeries, to change the style, refer to the API of the Series.
Example usage:
const polygonSeries = polarChart.addPolygonSeries() let ang = 45 let amplitude = 50 const polygon = polygonSeries.addPolygon() .setGeometry([ { angle: (ang += 10), amplitude: (amplitude += 10) }, { angle: (ang += 10), amplitude: (amplitude += 5) }, { angle: (ang += 10), amplitude: (amplitude += 10) }, { angle: (ang += 10), amplitude: (amplitude -= 5) }, { angle: (ang += 10), amplitude: (amplitude += 5) }, { angle: (ang += 5), amplitude: (amplitude -= 5) }, { angle: (ang += 0), amplitude: (amplitude -= 10) }, { angle: (ang -= 5), amplitude: (amplitude -= 5) }, { angle: (ang -= 10), amplitude: (amplitude -= 10) }, { angle: (ang -= 10), amplitude: (amplitude -= 5) }, { angle: (ang -= 10), amplitude: (amplitude += 5) }, { angle: (ang -= 10), amplitude: (amplitude += 10) }, ])