We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SunburstChart Multilevels

Thread ID:

Created:

Updated:

Platform:

Replies:

132246 Aug 22,2017 05:11 PM UTC Aug 23,2017 01:24 PM UTC ASP.NET MVC 1
loading
Tags: SunburstChart
Mahesh
Asked On August 22, 2017 05:11 PM UTC

Data that I have has multiple levels, but different levels for different catagory.

i.e. 

One data element is: 

data.Add(new DefaultData() { Category = "Employees", Country = "USA", JobDescription = "Sales",         JobGroup ="Executive",                         EmployeesCount= 50});

other one has extra field:

data.Add(new DefaultData() { Category = "Employees", Country = "USA", JobDescription = "Sales",         JobGroup ="Executive",        Location="San Franscisco"                 EmployeesCount= 100});


How to handle this?


Dharanidharan Dharmasivam [Syncfusion]
Replied On August 23, 2017 01:24 PM UTC

Hi Mahesh, 

Thanks for contacting Syncfusion support. 

We have analyzed your query. If you have extra field in the data collection, then in the levels you can map the particular field to groupMemberPath property, so that if the field exist in the data source then it will be rendered as child element. We have prepared a sample with the provided data. Here we have bind location field to the groupMemberPath of levels property. So that the location field will be rendered as child element to JobGroup field. Find  the code snippet below to achieve this requirement. 
 
JS: 

  $("#container").ejSunburstChart({ 
                levels: [ 
                            { groupMemberPath: "Country" }, 
                            { groupMemberPath: "JobDescription" }, 
                            { groupMemberPath: "JobGroup" }, 
                            { groupMemberPath: "Location" } 
                      ], 
                //... 
            }); 


Screenshot: 
 

Sample for reference can be find from below link. 

For more information on levels, find the help document. 

Kindly revert us, if you have any concerns. 

Thanks, 
Dharani. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;