|
Cycling color palettes |
Posted by Naveen on Nov-01-2016 19:40 |
|
Hi Peter,
Is there an api to configure a cyclic palette? When I use BaseChart.setColors2(DataColor, [list of colors]), the first N datasets use the colors I specified, and then after that it uses the default ChartDirector colors.
Regards, |
Re: Cycling color palettes |
Posted by Peter Kwan on Nov-02-2016 00:33 |
|
Hi Naveen,
The default palette contains 32 data colors. The data colors will the chart needs more than 32 data colors. The BaseChart.setColors2 can be used to replace some or all of the 32 colors or add more colors. If you replace the first 10 colors, the remaining 22 colors will still be the default colors.
To create your own cyclic palette, the cyclic palette must be at least 32 colors so that it can replace all the default colors. If your palette contains less than 32 colors, you can repeat it until it has at least 32 colors.
Hope this can help.
Regards
Peter Kwan |
Re: Cycling color palettes |
Posted by Naveen on Nov-02-2016 00:37 |
|
OK, thanks, knowing the total size of the data palette is useful (I don't believe this is mentioned in the docs). |
|