changed labels

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

changed labels

Post by marylina » Wed Jul 31, 2002 1:57 pm

How can I changed labels both in the legend and at the bottom of the axises. For example in the JFreeChartDemo I choose Vertical Bar Chart and I would change the labels in the legend("Series 1, Series 2...) and the labels Category1, Category2 ...can I?How?Thanks. Best Regards. Marilina

David Gilbert

Re: changed labels

Post by David Gilbert » Wed Jul 31, 2002 5:12 pm

If you are using the DefaultCategoryDataset class, then you can use the methods:

setSeriesNames(...);
setCategoryNames(...);

Regards,

DG.

Locked