changing the labels

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

changing the labels

Post by Muneer » Mon May 13, 2002 4:39 pm

How can i change the labels in verttical bar chart.

Gaurav Kathotia

Re: changing the labels

Post by Gaurav Kathotia » Tue May 14, 2002 5:32 am

By calling DefaultCategoryDataset.setCategories(String[] categories)
where categories is an array for naming your categories

and name series by calling DefaultCategoryDataset.setSeriesNames(String[] names) as above.

We use DefaultCategoryDatset which implements CtaegoryDataset interface.

Bye
Gaurav Kathotia

Locked