Menu

#143 Configurable ValueAxis DEFAULT_LOWER/UPPER_BOUND

closed-accepted
None
7
2007-03-22
2006-12-03
No

This patch add defaultLowerBound/defaultUpperBound, so as to be able to control the default lower and upper bounds of an autorange axis.
It doesn't look nice when autorange axis jumps to [0,1] when a chart is cleared if all the plots that is drawn on it normally has a completely different range.

I have kept the original DOS encoding(carriagereturn/newline) in the patch - maybe a dos2unix run on the source is due? :-)

Discussion

  • Jess Thrysoee

    Jess Thrysoee - 2006-12-03

    Configurable ValueAxis DEFAULT_LOWER/UPPER_BOUND patch

     
  • David Gilbert

    David Gilbert - 2006-12-06
    • priority: 5 --> 7
    • assigned_to: nobody --> mungady
     
  • David Gilbert

    David Gilbert - 2006-12-06

    Logged In: YES
    user_id=112975
    Originator: NO

    Thanks. The surprising thing is that this hasn't been done before now. I should get this in for 1.0.4. One thing you missed is updating the equals() method, and I'm also going to have a short think about whether the default range should be specified as a single range or two bounds (it probably doesn't matter that much).

     
  • David Gilbert

    David Gilbert - 2007-03-22

    Logged In: YES
    user_id=112975
    Originator: NO

    I just committed a patch to CVS. In the end, I decided to use a single defaultAutoRange object (instance of Range) rather than a separate upper and lower bound. This will be included in the 1.0.5 release.

     
  • David Gilbert

    David Gilbert - 2007-03-22
    • status: open --> closed-accepted
     

Log in to post a comment.

MongoDB Logo MongoDB