Paint Table ans setVerticalCategoryLabels

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
nilesh
Posts: 20
Joined: Wed May 21, 2003 10:56 am
Contact:

Paint Table ans setVerticalCategoryLabels

Post by nilesh » Fri Sep 12, 2003 9:48 am

:arrow: Using renderer.setSeriesPaint() is useful to set paint of a series but it doesn't help when you have overlaid plot and number of series is dynamic. The best way is to change paint table if there exist any.

How can I do it ? I think it used to exist in older version but unable to locate in 0.9.12.

:arrow: I tried to upgrade my engine from 0.9.8 to 0.9.12 and there is a problem with this code

HorizontalCategoryAxis hca = (HorizontalCategoryAxis) plot.getDomainAxis();
hca.setVerticalCategoryLabels(true);

It displays all category values (eg. 2001 2002 2003 ) vertically, but in version 0.9.12 how to do it ?

CategoryAxis domainAxis = new CategoryAxis(domainAxisLabel);
domainAxis.setVerticalCategoryLabels(true);

It does nothing !

plz help

Regards,
Nilesh

Locked