series references

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

series references

Post by Diego Garber » Mon Jan 20, 2003 4:46 pm

How can I turn off/handle one of the references at the foot of the Graph (I mean the ones with the colored square and the series title next to it).
One suggestion, modify the TimeSeriesCollection class in order to allow showing and hiding series, instead of adding and removing them and therefore loosing their color and index reference.
Thank you very much Dave!, my regards,

Diego.

David Gilbert

Re: series references

Post by David Gilbert » Mon Jan 20, 2003 6:30 pm

Hi Diego,

There needs to be a mechanism for hiding particular series in the chart legend (but still showing the data in the chart), but I don't want to put that mechanism into the dataset itself, because I'd like to keep the data separate from the presentation.

So it will probably have to be an extension to the Legend class, and one that takes into account combined and overlaid charts, plus the secondary datasets that have been introduced for dual axes (coming in 0.9.5)...it won't be easy.

Regards,

Dave Gilbert

Locked