Hi,
i have created a vertical bar chart with 2 categories but, a single set of data. I get same color to all categories because, the set is same. How do i get different colors?
how to give different colours
Re: how to give different colours
You can use the setCategoriesPaint(...) method in the renderer (inherited from the AbstractCategoryItemRenderer class. When the paint array is non-null, and there is only one series, the renderer cycles through the paint array to get the color for each item in the series.
Regards,
Dave Gilbert
Regards,
Dave Gilbert
Re: how to give different colours
I'm able to give different category colors for a vertical bar chart, but it doesn't seem to work for vertical statistical bar charts. Is there a way to have different category colors using VerticalStatisticalBarRenderer?
Re: how to give different colours
Hi,
I am not able to understand how to use this setCategoriesPaint(.. ). Could someone give me an example.
Thanks,
--Narasimha
I am not able to understand how to use this setCategoriesPaint(.. ). Could someone give me an example.
Thanks,
--Narasimha