Pie chart more than 5 colors

2 posts, 0 answers
  1. RBeco
    RBeco avatar
    15 posts
    Member since:
    Apr 2013

    Posted 14 May 2013 Link to this post

    Hello,

    I noticed that the pie chart has only 5 different colors for the different pie slices. Meaning if I have more than 5 items showing in my chart, colors will get repeated (I tried a few skins, but didn't try them all).

    I can of course try to make code that will add the items individually and set the color myself, but I would rather have this just work straight out of the box. Is there a simple way to have more than 5 colors? Did i miss anything?

    Thanks.
  2. Stamo Gochev
    Admin
    Stamo Gochev avatar
    157 posts

    Posted 17 May 2013 Link to this post

    Hi Ramaka,

    The current version of the RadHtmlChart provides exactly 5 colors for the series and as you mentioned the way to use other s is to set the color of the corresponding series items. We are currently working on adding additional 5 colors and they might be introduced in one of our next releases.

    There is also an item in our public issue tracker  where you can vote for this feature and as more and more clients do this we will raise the priority of this task and provide it to you as soon as possible.

    The following resources can help you in using the desired colors for your charts:
    http://www.telerik.com/help/aspnet-ajax/htmlchart-application-using-multiple-custom-colors.html
    http://www.telerik.com/help/aspnet-ajax/htmlchart-appearance-conditional-item-colirization.html

    Regards,
    Stamo Gochev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top