Change the names for Series and Categories

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

Change the names for Series and Categories

Post by david » Sat Mar 16, 2002 12:24 am

hi, i am novice in jfreechart, how can I changing the default names for Series and Categories in a CategoryDataset, very thanks!!!

David Gilbert

Re: Change the names for Series and Categories

Post by David Gilbert » Sat Mar 16, 2002 8:11 am

It depends on the class that you are using to implement the CategoryDataset interface.

If you are using DefaultCategoryDataset then you can specify the series names and categories in the constructor. If you want to change them after the dataset is constructed, you can use the setSeriesNames(...) and setCategories(...) methods.

Regards,

DG.

david

Re: Change the names for Series and Categories

Post by david » Sat Mar 16, 2002 4:58 pm

Thanks DG, i solve my problem, other question, where can i download the javadocs with the API specification of jfreechart?

David Osorio

David Gilbert

Re: Change the names for Series and Categories

Post by David Gilbert » Sat Mar 16, 2002 5:54 pm

I don't include the Javadocs in the download anymore since the file is big enough already and you can just regenerate them from the source code.

Section 3.6 of the JFreeChart installation document has instructions for regenerating from source - let me know if they need clarifying. I think I will check the instructions again myself and also put something extra to explain how to include the JCommon class library at the same time (JFreeChart uses a lot of classes from JCommon).

Regards,

DG.

Locked