Contents
Methods
redraw()
Redraws the entire sunburst. You can call this method whenever you update, add or remove points from the data source or whenever you want to refresh the UI.
export class AppComponent {
redraw(){
this.sunburst.widget.redraw();
}
// Create sunburst instance
@ViewChild('animation') sunburst: EJComponents<any, any>;
}
_destroy ()
destroy the sunburst
export class AppComponent {
destroy(){
this.sunburst.widget.destroy();
}
// Create sunburst instance
@ViewChild('animation') sunburst: EJComponents<any, any>;
}
Events
load
Fires before loading.
onLoad(sender){
//Do something
}
<ej-sunburstchart id="events" (load)="onLoad($event)">
</ej-sunburstchart>
preRender
Fires before rendering sunburst.
onPreRender(sender){
//Do something
}
<ej-sunburstchart id="events" (preRender)="onPreRender($event)">
</ej-sunburstchart>
loaded
Fires after rendering sunburst.
onLoaded(sender){
//Do something
}
<ej-sunburstchart id="events" (loaded)="onLoaded($event)">
</ej-sunburstchart>
dataLabelRendering
Fires before rendering the data label
onDrawLabelRendering(sender){
//Do something
}
<ej-sunburstchart id="events" (drawLabelRendering)="onDrawLabelRendering($event)">
</ej-sunburstchart>
segmentRendering
Fires before rendering each segment
onSegmentRendering(sender){
//Do something
}
<ej-sunburstchart id="events" (segmentRendering)="onSegmentRendering($event)">
</ej-sunburstchart>
titleRendering
Fires before rendering sunburst title.
onTitleRendering(sender){
//Do something
}
<ej-sunburstchart id="events" (titleRendering)="onTitleRendering($event)">
</ej-sunburstchart>
tooltipInitialize
Fires during initialization of tooltip.
onTooltipInitialize(sender){
//Do something
}
<ej-sunburstchart id="events" (tooltipInitialize)="onTooltipInitialize($event)">
</ej-sunburstchart>
pointRegionClick
Fires after clicking the point in sunburst
onPointRegionClick(sender){
//Do something
}
<ej-sunburstchart id="events" (pointRegionClick)="onPointRegionClick($event)">
</ej-sunburstchart>
pointRegionMouseMove
Fires while moving the mouse over sunburst points
onPointRegionMouseMove(sender){
//Do something
}
<ej-sunburstchart id="events" (pointRegionMouseMove)="onPointRegionMouseMove($event)">
</ej-sunburstchart>
drillDownClick
Fires when clicking the point to perform drilldown.
onDrillDownClick(sender){
//Do something
}
<ej-sunburstchart id="events" (drillDownClick)="onDrillDownClick($event)">
</ej-sunburstchart>
drillDownBack
Fires when resetting drilldown points.
onDrillDownBack(sender){
//Do something
}
<ej-sunburstchart id="events" (drillDownBack)="onDrillDownBack($event)">
</ej-sunburstchart>
drillDownReset
Fires after resetting the sunburst points
onDrillDownReset(sender){
//Do something
}
<ej-sunburstchart id="events" (drillDownReset)="onDrillDownReset($event)">
</ej-sunburstchart>