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.
Unfortunately, activation email could not send to your email. Please try again.

drilldown legend customization

Thread ID:

Created:

Updated:

Platform:

Replies:

130909 Jun 9,2017 01:40 PM Jun 12,2017 08:47 AM ASP.NET MVC 1
loading
Tags: TreeMap
Brian Tatro
Asked On June 9, 2017 01:40 PM

HI,

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

Thanks,

Brian

Dharanidharan Dharmasivam [Syncfusion]
Replied On June 12, 2017 08:47 AM

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. 


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.

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.

;