A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
balladist
Post
by balladist » Tue Jul 20, 2004 3:38 am
I have some series in my line chart. How could i hide one of them(with its legend) temporarily, and make me easy to show it again?
I'm using TimeSeriesChart.
Plz help! thx!!
-
angel
- Posts: 899
- Joined: Thu Jan 15, 2004 12:07 am
- Location: Germany - Palatinate
Post
by angel » Tue Jul 20, 2004 7:27 am
How about regenerate the chart with another data?
-
balladist
Post
by balladist » Tue Jul 20, 2004 8:43 am
Sorry, i think regenerate a chart have some performance problem.
I have tried to generate charts continually,and use 'chartPanel.setChart()'
to put them into a Chart Panel.
The UI keeped ruuning for only 2 hours,and then dumped.200 M RAM had been occupied.
-
DopeForADay
- Posts: 32
- Joined: Thu Apr 22, 2004 9:15 am
Post
by DopeForADay » Tue Jul 20, 2004 11:52 am
What about removing the series you want to hide, save it in a TimeSeries variable (or a Vector if you have more than one) and then just adding it again when you want it to be shown? then, you'll only have to repaint the chart.
-
balladist
Post
by balladist » Thu Jul 22, 2004 9:12 pm
Aha,I have the same idea with you.But the way still have a problem.
I can remove a series easy,but it is some difficult in readd it into the chart with correct position.