Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
How to change color of Pie chart based on Label name in IgniteUI?
posted

Hi,

I am new to IgniteUI pie charts. I have a pie chart with upto 25 countries data, with country name as label for each pie chart section. I want to assign specific color to a each pie chart section based on country names. In my pie chart there can be any number of countries (so number of country section is dynamic).

I am aware of "Brushes" in IgniteUI charts, where we can make a collection of different colors. But I am not sure how can I pick specific color for a given country.

Any help will be highly appreciated.

Thanks in advance.

Regards!

Parents
No Data
Reply
  • 16310
    Offline posted

    Hi,

    Please refer to the following thread, where it is discussed how to apply the same color to a specific series in the pie chart:

    http://es.infragistics.com/community/forums/t/92379.aspx

    In the example the memberPath property is used to differentiate the series, but you can use another property of course. Please let me know if you need assistance on how to achieve it.

Children