Horizontal stacked bar chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
vijay

Horizontal stacked bar chart

Post by vijay » Sun Aug 18, 2002 6:12 am

Hi,

How do i change the tick labels for horizontal stacked bar chart (i.e. the labels category 1 ..... on Y-Axis) to custom labels for tick units.


Thanks,
Vijay

David Gilbert

Re: Horizontal stacked bar chart

Post by David Gilbert » Mon Aug 19, 2002 9:10 am

Hi Vijay,

The names come from the categories you are using in your dataset. If you are using the DefaultCategoryDataset class, then you can use the setCategories(...) method to change these.

Regards,

DG.

Locked