Change the names for Series and Categories
Change the names for Series and Categories
hi, i am novice in jfreechart, how can I changing the default names for Series and Categories in a CategoryDataset, very thanks!!!
Re: Change the names for Series and Categories
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.
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.
Re: Change the names for Series and Categories
Thanks DG, i solve my problem, other question, where can i download the javadocs with the API specification of jfreechart?
David Osorio
David Osorio
Re: Change the names for Series and Categories
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.
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.