Assign Static Colors Across Pie Charts?

2 posts, 0 answers
  1. DH
    DH avatar
    11 posts
    Member since:
    Dec 2011

    Posted 20 Feb 2015 Link to this post

    Is it possible to assign static colors across the pie chart. For example, i have 2 pie charts, on each chart the data corresponds to a user. However in each chart the color is seemingly randomly assigned. I would like to make it static in such a way that user1 will have the same color between the two pie charts, the particular color does not matter. 
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1490 posts

    Posted 23 Feb 2015 Link to this post

    Hi DH,

    For a declaratively created chart you can hard code colors in the Color property of the series items. See an example in the HtmlChart - Pie Chart demo.

    For a data-bound chart you can use the ColorField property of the series that refers the corresponding data source field with the colors. See an example in the HtmlChart - Conditional Item Colorization demo.

    Regards,
    Danail Vasilev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top