Is there an easy way to remove TimeSeries from the displayed JFreeChart?

I have a Swing application that uses JFreeChart to display one in a series of requests. Some of these queries have a composite key TimeSeries. Each component of this key can contain multiple values, but the rendering results in a very noisy graph. I would like the user to be able to hide / show some of the TimeSeries in the displayed Chart component.

+1


source to share


2 answers


It looks like the setSeriesVisible AbstractRenderer method is what you are looking for. While this forum says it may only work in the latest version, there is work for earlier releases.



+1


source


I'm not really sure what you mean, but if you want to split the element shapes take a look at the class AnalysisXYItemRenderer

(or the corresponding one). There is transXDiff

one that can be used for such calculations (for example, accumulating diff and only displaying the graph shapes when this accumulated value reaches the limit).



It was a couple of years ago, I did this, so things can change in JFreeChart since then.

0


source







All Articles