Adding/removing series dynamically.

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
RCDran
Posts: 29
Joined: Wed Feb 25, 2004 4:18 am
Location: Japan

Adding/removing series dynamically.

Post by RCDran » Mon Nov 22, 2004 7:53 am

I have a requirement of Timeseries chart with two series (say base and compare), with 2 axes (one each for base and compare). This line shall be controlled from GUI (say check box), by checking base the base line will be rendered and by checking compare the compare line is rendedred.

Now the problem is when I create the chart with two series I am getting the axes tick labels very well laid out (one at left and one at right). now when I remove say compare from the chart by clicking the cbeck box, the line is getting removed, the axis tick label is getting removed and the space (which was alloted for the axis of compare) in the left side is not getting cleared. Also when I create the chart with one axis (say base) and now I add compare I am getting the line and the axis tick labels are being shown but not fully but I could see only the tick marks and may be tow or three points of the last character in the tick label.

What could be the problem? Should I create the chart/chartPanel every time I add/remove the series?
--
RCDran

Locked