I am creating a custom chart theme for IGChartView. I've set .axisPalette, .plotAreaPalette, and .seriesPalettes and they seem to work ok, except for... the .plotAreaPalette doesn't affect the outer border area of the chart. I documentation states that plotAreaPalette "Determines the brush of the chart’s plot area. The chart’s plot area is the area where the series and the axis gridlines are displayed. The plot area does not include axis label panels." How do I theme the axis label panels?
Here is an image showing the part I cannot theme. The white area around the chart is actually where the axis labels are, which are in light gray color, so they are hard to see. I cannot seem to set the background color for that entire area around the plot area, even though it is part of the chart.
Using iOS7.1, latest controls.
Hello Jeff,
There is no way to set a brush to axis panels directly. Instead, all axis panels share the same brush as the chart’s background, so you either set backgroundColor in the theme or set backgroundColor property on the chart.
Please let me know if you have any further questions.
Coloring the axis panels the same as the chart background is what I want, but it doesn't work when I set it in the custom theme.
I may have been a bit too wordy in my original post, but I "have" set the backgroundColor property on the theme definition to my custom color, but it doesn't apply to the border areas around the chart where the axes are. However, if I set the backgroundColor property on the chart object itself as well, it does color the area around the chart. In other words, it appears the backgroundColor property on the theme definition doesn't work.
Hello,
Thank you for your feedback. I am glad to hear that I was able to help you.
Thank you for using Infragistics components.
Thanks for your help. I checked your sample project, compared it against mine, and determined that I was indeed setting the background property of the chart after the theme was applied. Sometimes you don't see those things until you get hints as to what to look for.
Thanks again for your help.
Hello ,
I have tested your scenario on my side and everything works as expected, please see the attached sample. However if you have set backgroundColor to your theme and this color is not applied on your chart, then it seem that background property of your chart is explicit set in your code after the theme was applied to the chart. So please check your code if you have set background directly on your chart.