This is a migrated thread and some comments may be shown as answers.

MVC TreeMap sample could be improved with the addition of Colors Range

2 Answers 56 Views
TreeMap
This is a migrated thread and some comments may be shown as answers.
NerdBrick
Top achievements
Rank 1
NerdBrick asked on 02 Jun 2017, 10:00 PM

I was using the MVC Sample app to build our usage of the TreeMap, and we couldn't get the Color Range to work on the map like is shown in this demo

MVC TreeMap Demo

Then we dug through the JS samples and realized the color range was set as an option in the sample. I believe the MVC sample could use this to improve the user experience of starting with code that looks like what is shown. 

.Colors(color =>
{
    color.AddRange("#0072c6", "#cbe2f3");
    color.AddRange("#5db2ff", "#deeffe");
    color.AddRange("#ff8f32", "#cbe7d0");
    color.AddRange("#82ba00", "#e5f0cb");
    color.AddRange("#ff8f32", "#fee8d5");
    color.AddRange("#9e0a61", "#eccedf");
    color.AddRange("#ac193d", "#eed0d7");
})

Thank you

2 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 05 Jun 2017, 06:52 AM
Hello,

Currently the Colors method of the MVC TreeMap wrapper accepts an array of strings similarly to the Kendo UI TreeMap's colors configuration option. We can suggest logging your idea for improving the TreeMap in our Feedback Portal.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
NerdBrick
Top achievements
Rank 1
answered on 05 Jun 2017, 05:19 PM
Feedback submitted. Hoping the MVC TreeMap sample is improved for other some day. 

Thank you
Tags
TreeMap
Asked by
NerdBrick
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
NerdBrick
Top achievements
Rank 1
Share this question
or