I'm trying change colors of lines and I do this:
AbstractCategoryItemRenderer renderer2 = (AbstractCategoryItemRenderer)((VerticalCategoryPlot)plot).getRenderer();
// set the color for each category...
renderer2.setCategoriesPaint(new Paint[] { Color.orange, Color.blue, Color.green,
Color.yellow, Color.orange, Color.cyan,
Color.magenta, Color.blue });
But when I write chart to a file first serie isn´t orange.
What can I do?
AbstractCategoryItemRenderer && setCategoriesPaint d
Re: AbstractCategoryItemRenderer && setCategoriesPai
You should use setSeriesPaint(...) in the Plot class.
The setCategoriesPaint(...) method is for a special case where there is only one series. Lots of people asked for a way to color each bar differently for the one series, and this was the way I did it.
Regards,
DG.
The setCategoriesPaint(...) method is for a special case where there is only one series. Lots of people asked for a way to color each bar differently for the one series, and this was the way I did it.
Regards,
DG.