#926 copy chart

General (896)


is there a simple way to copy a chart/chartpanel which is not linked in any way to the original one. Use case: Double click on a already created chart. The chart is getting fullscreen mode. but according to the current implementation changes to the full screen chart( zooming set another maximum category count) effects also the original one. This is the case even if you call clone on the chart it self.


  • David Gilbert

    David Gilbert - 2009-04-10
    • assigned_to: nobody --> mungady
  • David Gilbert

    David Gilbert - 2009-04-10

    In general, cloning the JFreeChart instance and putting that into a new ChartPanel should give you an independent chart that shows a view of the *same* dataset (you could clone the dataset separately if you want to). That said, people don't do this very often, so you may well have run into a bug. Any chance you could put together a small self-contained demo that shows the problem you are running into?

    Best regards,

    Dave Gilbert
    JFreeChart Project Leader


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks