How to set series names for DefaultXYDataS?

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

How to set series names for DefaultXYDataS?

Post by Vyacheslav Potapenko » Fri Nov 02, 2001 3:06 pm

I see method setSeriesNames(java.lang.String[] seriesNames) in DefaultCategoryDataSource, but I can't find smt like this in DefaultXYDataSource. Q: How to change(set) names for DefaultXYDataS? (I know I can do it from constructor, but it is not, what I want). Thanks!

John Currier

RE: How to set series names for DefaultXYDataS?

Post by John Currier » Fri Nov 02, 2001 5:04 pm

Since the seriesName instance variable is 'protected' you can easily extend it and add your own setSeriesNames().

John

Vyacheslav Potapenko

RE: How to set series names for DefaultXYDataS?

Post by Vyacheslav Potapenko » Fri Nov 02, 2001 5:12 pm

>Since the seriesName instance variable is 'protected' you can easily >extend it and add your own setSeriesNames().
Yes, but... So many manipulations I think.

David Gilbert

RE: How to set series names for DefaultXYDataS?

Post by David Gilbert » Mon Nov 05, 2001 9:20 am

Hi All,

DefaultXYDataSource (and DefaultCategoryDataSource) are horrible classes that will be rewritten for the next release of JFreeChart.

Regards,

DG.

Locked