Results 1 to 3 of 3

Thread: NumericAxis max min

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default NumericAxis max min

    Hello,
    I noticed that the NumericAxis getMaximum() and getMinimum() values return NaNs unless I explicitly set them by hand via setMaximum() setMinimum(). Is there any way to get the internally calculated max and min values when I let it autoscale? I am using NumericAxis for both the x and y-axes for a scatter plot. Also when setting the min max via setMaximum() setMinimum(), it seems like sometimes it works and sometimes it doesn't: sometimes the max min will be correctly reset, and at other times the scaling will not change depending on the numbers chosen. It seems like it is having a difficult time deciding on the number of steps and the tick spacing. Also it seems the algorithm sometimes returns strange spacings such as multiples of 3 or some decimal. Ideally the steps should always be a multiple of 1,2,5,10, etc and also going the other way, 0.1, 0.25, 0.5, etc...

  2. #2
    Sencha User BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
      1  

    Default

    To get the calculated start and end values you can use getFrom() and getTo(). As to your second comment in 3.0.1 if you do not like the default intervals there will be an interval option on NumericAxis.

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Great, thank you Brendan, very helpful.
    Roy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •