dynamic combinedXYPlot

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

dynamic combinedXYPlot

Post by Charles Martin » Fri Sep 13, 2002 9:59 pm

I recently tried to modify the combinedXYPlot class to allow me to add and remove plots at will. Removing plots is fairly easy, however, it is not so easy to add them back is not so easy for me.

What I tried to do is reset the firstSeriesIndicies so that all of the
new plot and their subplots have the "correct" indicies for the order I want

Doing this caused my javaw.exe to hang

Could someone explain this behavior to me?

I expect that, in order to dynamically change the CombinedXYPlot, I will have to recreate my combined plots every time. This is fine, but I was
wondering if I could get around it?

Thanks

Charles Martin

David Gilbert

Re: dynamic combinedXYPlot

Post by David Gilbert » Mon Sep 16, 2002 7:06 am

Hi Charles,

I'll look into it when I get a chance. I need to think of a better mechanism for combining all the series of a combined plot into a single legend...the 'firstSeriesIndex' thing is too fragile.

Regards,

DG.

Charles Martin

Re: dynamic combinedXYPlot

Post by Charles Martin » Wed Sep 18, 2002 2:35 pm

I have tried a number of things to create a dynamic chart
I have yet to find a way to do it that is robust enough for deployment
For example, I have a dynamic chart class that can rebiuld all the charts depending on their configuration. The memory runs high with buffers, and , eventually, the system crashes.

I am happy to share what I am trying to help spark some ideas

Locked