Permanently destroy the component.
To fully allow Garbage-Collection to free the resources used by the component, make sure to remove any references to the component and its children in application code.
let chart = ...ChartXY()
let axisX = chart.getDefaultAxisX()
// Dispose Chart, and remove all references so that they can be garbage-collected.
chart.dispose()
chart = undefined
axisX = undefined
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.
Subscribe onDispose
event.
This event is triggered whenever the Control (Dashboards and all chart types) is disposed.
// Example usage
Chart.onDispose(() => {
console.log('chert was disposed')
})
Chart.dispose()
Token of subscription
Handler function for event
Register new event listener to visibleStateChanged
event.
Event listener for visibleStateChanged
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
Object itself for fluent interface
Specifies state of mouse interactions
Set element visibility.
Object itself.
true
when element should be visible and false
when element should be hidden.
Class that represents a single polygon from the collection of a PolarPolygonSeries.
The geometry of the polygon can be mutated at any time.
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: