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. Image for the cookie policy date
close icon

drilldown legend customization

HI,

Is it possible to create differnet legends depending on what level of drilldown a user is at?

Thanks,

Brian

1 Reply

DD Dharanidharan Dharmasivam Syncfusion Team June 12, 2017 12:47 PM UTC

Hi Brian, 
 
Thanks for contacting Syncfusion support. 
 
We have analyzed your query. We have prepared a sample with, in which by using rangeColorMapping we can have different legends for different ranges of values with respect to weightValuePath property. Find the code snippet below to achieve this requirement. 
 
ASP.NET MVC: 
@(Html.EJ().TreeMap("treemap1") 
//... 
.TreeMapRangeColorMappings(range => 
                { 
                    range.Color("#77D8D8").From(0).To(15646000).Add(); 
                    range.Color("#AED960").From(0).To(25646000).Add(); 
                    range.Color("#FFAF51").From(0).To(35646000).Add(); 
                    range.Color("#F3D240").From(0).To(405646000).Add(); 
                    range.Color("#5189e2").From(0).To(4000000000).Add(); 
                } 
) 
 
On drilldown, depends upon the population of country, we can have different legends. 

Screenshot before drilldown: 
 

Screenshot after drilldown: 
 
 
Sample for reference can be find from below link. 
 
If we have misunderstood your query, kindly revert us with more information on your query and with some screenshot with your requirement. 

Thanks, 
Dharani. 


Loader.
Live Chat Icon For mobile
Up arrow icon