How we can add custom color to the graphs ? I want to add custom defined color to pie cahrt, bar chart etc instead for framework default colors.
Thanks Dimitar,
The solution works.
Hi Abhishek,
Thank you for posting in our forums.
There are a few ways, with which you can achieve this task. Both IGPieChartView and IGChartView have a brushes property, with which you can specify what color the series/slices will use. Additionally series have brush property which is another way to set the color of the series. Another approach you can use is to create your own themes. This will allow you to customize the look of your chart, including the series/slices color. For more information about our predefined themes and how to create custom ones please visit these links:
http://help.infragistics.com/iOS/2014.2/?page=IGChartView_Themes.html
http://help.infragistics.com/iOS/2014.2/?page=IGPieChartView_Themes.html
Also there is a sample in our samples browser that allows you to create custom themes and mails you the source code when you export. The sample can be found at the top of the Charts section of the sample browser. It’s the 2nd sample shown that shows a chart and color picker in the preview image.
Please let me know if you have any additional questions.