Menu

#1 exception if all minus values in dataset

closed-fixed
nobody
None
5
2002-02-18
2002-02-18
Rob Gordon
No

First, thanks for a great charting package. All others
I tried had functions missing which I really needed or
I did not like their data model. ThunderGraph is very
complete for my application, considering its beta 0.2!

Now that the pleasantries are over ;-)

If a dataset contains only negative values, an
IllegalArgumentException("all dataseries in
dataSeriesSet are empty") is thrown by dsGetMaxValue in
class Tools.

The problem appears to be the use of Double.MIN_VALUE
which represents minimum POSITIVE value (0?) instead of
"most" negative value. Why Sun every defined it this
way is a mystery?!

I fixed it by using Double.NEGATIVE_INFINITY for the
initializer of result and the end check.

Cheers,
Rob

Discussion

  • Alexey Yudichev

    Alexey Yudichev - 2002-02-18

    Logged In: YES
    user_id=345880

    Thank you for the report.
    This actually was fixed in CVS approx. month ago in the
    same way :-)

     
  • Alexey Yudichev

    Alexey Yudichev - 2002-02-18
    • status: open --> closed-fixed
     
  • Rob Gordon

    Rob Gordon - 2002-02-19

    Logged In: YES
    user_id=457099

    Excellent!
    I didn't check for CVS updates because Sourceforge status
    showed no checkins or adds. I'll download it and use that.
    Wasn't sure if this project was too active because the
    forums have been silent since 0.2 was posted.
    Thanks,
    Rob

     

Log in to post a comment.

MongoDB Logo MongoDB