Bug in XYChart ?

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

Bug in XYChart ?

Post by Manu » Wed Jul 03, 2002 8:52 am

Hello everybody,

I build a chart with the following code :

.....

//construction
com.jrefinery.chart.JFreeChart jf3 = cf.createXYChart
("Title","Years","Values",data,true);

com.jrefinery.chart.ChartPanel chartPanel = new
com.jrefinery.chart.ChartPanel(jf3);

// make the crosshair visible
chartPanel.setHorizontalAxisTrace(true);
chartPanel.setVerticalAxisTrace(true);

...

The problem is that when I follow the curve with the mouse and when the values of the point appears near the mouse cursor, there is a refresh problem with the crosshair : the image of the crosshair is present :
- near the old mouse cursor emplacement
and
- near the current mouse emplacement

So when you follow the curve in this situation, a lot of crosshairs are present on the chart.

This problem doesn't appears if the values of the point aren't shown.

It seems to be a simple refresh bug, isn't it?

David Gilbert

Re: Bug in XYChart ?

Post by David Gilbert » Thu Jul 04, 2002 6:32 am

Hi Manu,

There are still some things that need sorting out with the tracing lines on the ChartPanel. If you have any suggestions let me know...

Regards,

DG.

Locked