Levels

Sunburst chart is used to display hierarchical data. You can add more than one hierarchical data by using the Levels property of Sunburst chart. Each level of the hierarchy is represented by circle.
The following code snippet illustrates

  • js
  • @(Html.EJ().SunburstChart("chartContainer")
    
           .Levels(
             //.. to add the hierarchical levels 
                          })
     )

    GroupMemberPath

    It is the string property that is used to map the group category value in the dataSource .
    You can define the levels as shown in the below code example

  • js
  • @(Html.EJ().SunburstChart("chartContainer")
    
           .Levels(
             //.. to add the hierarchical levels 
             lv.GroupMemberPath("Level1").Add();
                            lv.GroupMemberPath("Level2").Add();
                            lv.GroupMemberPath("Level3").Add();
                          })
     )

    The following screenshot illustrates the Sunburst Chart with different levels