Hybrid View

    Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    3
    Vote Rating
    0
    liorm is on a distinguished road

      0  

    Default NumericAxis doesnt refresh properly on Vertical Axis

    NumericAxis doesnt refresh properly on Vertical Axis


    Version of Ext GWT
    This problem occurs in the recently released GA version of Ext GWT 3.0.0.

    Browser versions
    all

    Operating System
    Windows 7 64 bit

    Run Mode
    Occurs in when deployed to Tomcat (web mode), and dev mode.

    when using NumericAxis, after refresh of data, the height of the the axis and the numbers it represets are not shown correctly. when using 'setAdjustMaximumByMajorUnit(true)', if the refreshed data are much lower then the previous, then same numbers in the axis are defined several times, and the plotted graph is not allign with the axis.
    in case the refresh data has maximum unit that is greater then the previous one, then axis doesnt change at all. and plotted graph is out of the axis range.

    attached file 'MixedExample.txt' that shows the problem. it is based on the Mixed example demo at:
    http://staging.sencha.com/examples-dev/#ExamplePlace:mixedchart

    when starting the app, everything looks good, but when pressing on the 'reload data' several time, you see that data is not align with the axis.


    i have attached also pictures from different application:
    1. 'first.jpg' - here the max number in the data is 46, everything looks ok.
    2. 'second.jpg' - i have set new data into the store, maximum number is 1. here you can see that the graph is not align with the axis (the orange dots located above '1') , also numbers 2 and 6 apears twice, so graph is totaly not align. by the way, also Horizontal Timeaxis is not showing last date correctly.
    3. 'third.jpg' - then i refresh the data again, now the maximum number is 48 - you can see that axis didnt changed at all, and the graph is out of the axis range.


    by the way, this is happening even if i progrematically set the maximum of the axis.
    Attached Images
    Attached Files

  2. #2
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    That is because of the default LabelProvider rounds to an integer. For example if you were to use the following:
    Code:
    axisLeft.setLabelProvider(new LabelProvider<Number>() {          @Override
              public String getLabel(Number item) {
                return NumberFormat.getFormat("0.00").format(item);
              }
            });
    format.jpg
    Sorry for the confusion.

  3. #3
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    As for the last date appearing off screen I would recommend using a larger chart.setDefaultInsets. I did notice on certain reloads in your example the line series scales to the top of the axis when it should not. This requires further investigation.

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    3
    Vote Rating
    0
    liorm is on a distinguished road

      0  

    Default


    thanks for the fast response.

    i understand your solution, but what should I do if I need to show only Natural numbers (Integers).
    fraction numbers are not making sense in our application.
    how can we do it? is there other axis type we can use (although I didn't find such one).

  5. #5
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    AdjustMinimumByMajorUnit and AdjustMaximumByMajorUnit are now fixed in SVN and will be in the next release. Also I don't know if you removed
    Code:
    line.setYAxisPosition(Position.LEFT);
    because of the bug, but without that line of code Series will use an internal default axis to scale against instead the one you are drawing.
    In regards to the natural numbers you could reduce the number of steps using setSteps. The default is 10. Also due to another customer's request I have added a new feature for the next release where you can manually set the interval between steps and numeric axis will calculate the number of steps using that.

  6. #6
    Sencha User
    Join Date
    Apr 2012
    Posts
    3
    Vote Rating
    0
    liorm is on a distinguished road

      0  

    Default


    yes, im using '
    line.setYAxisPosition(Position.LEFT)'.
    ill try to set the steps and see how it behave.

    setting an interval between steps will be a great feature.

    thanks for your help, waiting to next release.

  7. #7
    Sencha - GXT Dev Team BrendanC's Avatar
    Join Date
    Aug 2010
    Posts
    534
    Vote Rating
    3
    BrendanC is on a distinguished road

      0  

    Default


    GXT 3.0.1 has been released and contains this fix.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi