Thank you for your question.
In order to provide default styles for the different types of axes, series, etc. Chart for Android uses Palettes. This means that unless otherwise specified the chart will use its palette for the colors and ignore the values that you have set. You have two options to change the colors:
1) use the respective properties, after you call setCanApplyPalette(false), which will prevent the usage of the default palette for the specified element, for example:
Since this will result in loosing some other values that you would have taken from the palette, I suggest the second approach:
2) clone the palette and change only the values that you are interested in:
ChartPalette customPalette = chart.getPalette().clone();
PaletteEntry areaEntry = customPalette.getEntry(ChartPalette.AREA_FAMILY);
PaletteEntry hAxisEntry = customPalette.getEntry(ChartPalette.HORIZONTAL_AXIS_FAMILY);
PaletteEntry vAxisEntry = customPalette.getEntry(ChartPalette.VERTICAL_AXIS_FAMILY);
There is no need to change the colors of your spline area series object, if you have modified the palette that it uses. You can read more about the usage of palettes in the chart in our online documentation
I hope this information helps. Let us know if you need further assistance.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items