axis auto-range calculation

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

axis auto-range calculation

Post by Fabien D. » Wed Nov 29, 2000 9:27 am

Hi,

First, I think your library very userfull, I think it's probably the
best free tool of this kind.

I saw that the axis auto-range calculation bug was corrected since 0.5.5.
Does it include the case where an implementation of XYDataSource has no serie (0 serie)? In this case i get an ArrayIndexOutOfBoundException in the VerticalNumberAxis class.

David Gilbert

RE: axis auto-range calculation

Post by David Gilbert » Thu Nov 30, 2000 1:59 pm

Thanks for the feedback.

I haven't got access to the code right now, but I suspect this is a bug. When I wrote the XYDataSource interface I didn't really think about having zero series because the application that I use JFreeChart in never tries to do this.

I guess the correct behaviour is to draw a blank chart...so I'll fix it for the next version.

Regards,

DG.

Fabien D.

RE: axis auto-range calculation

Post by Fabien D. » Thu Nov 30, 2000 3:54 pm

Hi,
I use JFreeChart for a personal project.
Because I think you're too busy to do this in few days and I don't want to wait more, I can fix the bug by myself. Could you help me to fix it or is it too difficult to be done by someone other than you ?

Fabien D.

RE: axis auto-range calculation

Post by Fabien D. » Sun Dec 10, 2000 3:02 pm

Hi,
I send a fix for this bug to David. If you want it without waiting for
the next release, send me a mail.

Locked