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!
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.
Hi Hristo,
Thanks for your reply, appreciate it. I have resolved this issue in pretty similar way (as you have advised), by creating a customized array list of colors for "Brushes". In my array list of colors, I push new color as I find country and then assign list of colors to Brushes.