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

3 posts, 0 answers
  1. NerdBrick
    NerdBrick avatar
    30 posts
    Member since:
    Jan 2013

    Posted 02 Jun Link to this post

    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. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1126 posts

    Posted 05 Jun Link to this post

    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.
  3. NerdBrick
    NerdBrick avatar
    30 posts
    Member since:
    Jan 2013

    Posted 05 Jun Link to this post

    Feedback submitted. Hoping the MVC TreeMap sample is improved for other some day. 

    Thank you
Back to Top