Methods

redraw()

redraw 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.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1"))
  • JS
  • var sun = $("#SunburstChart1").data("ejSunburstChart");
    sun.redraw();

    destroy ()

    destroy the sunburst

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1"))
  • JS
  • var sun = $("#SunburstChart1").data("ejSunburstChart");
    sun.destroy();

    Events

    Load

    Fires before loading, you can use Load event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .Load("load")
    
    )
  • JS
  • function load(){
        // Do Something
    }

    PreRender

    Fires before rendering sunburst, you can use PreRender event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .PreRender("prerender")
    
    )
  • JS
  • function prerender(){
        // Do Something
    }

    Loaded

    Fires after rendering sunburst, you can use Loaded event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .Loaded("loaded")
    
    )
  • JS
  • function loaded(){
        // Do Something
    }

    DataLabelRendering

    Fires before rendering the data label, you can use DataLabelRendering event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .DataLabelRendering("dataLabelRendering")
    
    )
  • JS
  • function dataLabelRendering(){
        // Do Something
    }

    SegmentRendering

    Fires before rendering each segment, you can use SegmentRendering event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .SegmentRendering("segmentRendering")
    
    )
  • JS
  • function segmentRendering(){
        // Do Something
    }

    TitleRendering

    Fires before rendering sunburst title, you can use TitleRendering event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .TitleRendering("titleRendering")
    
    )
  • JS
  • function titleRendering(){
        // Do Something
    }

    TooltipInitialize

    Fires during initialization of tooltip, you can use TooltipInitialize event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .TooltipInitialize("tooltipInitialize")
    
    )
  • JS
  • function tooltipInitialize(){
        // Do Something
    }

    PointRegionClick

    Fires after clicking the point in sunburst, you can use PointRegionClick event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .PointRegionClick("pointRegionClick")
    
    )
  • JS
  • function pointRegionClick(){
        // Do Something
    }

    PointRegionMouseMove

    Fires while moving the mouse over sunburst points, you can use PointRegionMouseMove event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .PointRegionMouseMove("pointRegionMouseMove")
    
    )
  • JS
  • function pointRegionMouseMove(){
        // Do Something
    }

    DrillDownClick

    Fires when clicking the point to perform drilldown, you can use DrillDownClick event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .DrillDownClick("drillDownClick")
    
    )
  • JS
  • function drillDownClick(){
        // Do Something
    }

    DrillDownBack

    Fires when resetting drilldown points, you can use DrillDownBack event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .DrillDownBack("drillDownBack")
    
    )
  • JS
  • function drillDownBack(){
        // Do Something
    }

    DrillDownReset

    Fires after resetting the sunburst points, you can use DrillDownReset event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .DrillDownReset("drillDownReset")
    
    )
  • JS
  • function drillDownReset(){
        // Do Something
    }

    LegendItemRendering

    Fires before rendering the legend item, you can use LegendItemRendering event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .LegendItemRendering("legendItemRendering")
    
    )
  • JS
  • function legendItemRendering(){
        // Do Something
    }

    LegendItemClick

    Fires when clicking the legend item, you can use LegendItemClick event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .LegendItemClick("legendItemClick")
    
    )
  • JS
  • function legendItemClick(){
        // Do Something
    }

    Click

    Fires when clicking the sunburst points, you can use Click event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .Click("click")
    
    )
  • JS
  • function click(){
        // Do Something
    }

    DoubleClick

    Fires when double clicking the sunburst points, you can use DoubleClick event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .DoubleClick("doubleClick")
    
    )
  • JS
  • function doubleClick(){
        // Do Something
    }

    RightClick

    Fires when right clicking the sunburst points, you can use RightClick event.

  • CSHTML
  • @(Html.EJ().SunburstChart("SunburstChart1")
    
    .RightClick("rightClick")
    
    )
  • JS
  • function rightClick(){
        // Do Something
    }