[OPEN] [#93] NumericAxis labels rendered incorrectly

  1. #1

    [OPEN] [#93] NumericAxis labels rendered incorrectly

    I'm having issues with getting the labels to render correctly. The data itself is fine. Below are a few examples with different configuration. Am I not using `MajorTickSteps` correctly?

    No MajorTickSteps set (10)

        Html.X().NumericAxis()
            .Position(Position.Bottom)
            .Title("Time")
            .Maximum(1440)
            .Minimum(480)
        );
    Result: http://i.imgur.com/J70wn.png

    - 480
    - 567,27 (87,27)
    - 654,54 (87,27)
    - 741,81 (87,27)
    - 829,09 (87,28)
    - 916,36 (87,27)
    - 1003,63 (87,27)
    - 1090,9 (87,27)
    - 1178,18 (87,28)
    - 1265,45 (87,27)
    - 1352,72 (87,27)
    - 1440 (87,28)

    MajerTickSteps set to 10

        Html.X().NumericAxis()
            .MajorTickSteps(10)
            .Position(Position.Bottom)
            .Title("Time")
            .Maximum(1440)
            .Minimum(480)
        );
    Result: http://i.imgur.com/NcMHC.png

    - 480
    - 560,55 (80,55)
    - 641,11 (80,56)
    - 721,67 (80,56)
    - 802,23 (80,56)
    - 882,79 (80,56)
    - 963,35 (80,56)
    - 1043,91 (80,56)
    - 1124,47 (80,56)
    - 1205,03 (80,56)
    - 1285,59 (80,56)
    - 1366,15 (80,56)

    MajorTickSteps set to 15

        Html.X().NumericAxis()
            .MajorTickSteps(15)
            .Position(Position.Bottom)
            .Title("Time")
            .Maximum(1440)
            .Minimum(480)
        );
    Result: http://i.imgur.com/VCfDA.png

    - 480
    - 535,38 (55,38)
    - 590,76 (55,38)
    - 646,15 (55,39)
    - 701,53 (55,38)
    - 756,92 (55,39)
    - 812,3 (55,38)
    - 867,69 (55,39)
    - 923,07 (55,38)
    - 978,46 (55,39)
    - 1033,84 (55,38)
    - 1089,23 (55,39)
    - 1144,61 (55,38)
    - 1200 (55,39)
    - 1255,38 (55,38)
    - 1310,76 (55,38)
    - 1366,15 (55,39)

    Expected

    - 480
    - 540 (60)
    - 600 (60)
    - 660 (60)
    - 720 (60)
    - 780 (60)
    - 840 (60)
    - 900 (60)
    - 960 (60)
    - 1020 (60)
    - 1080 (60)
    - 1140 (60)
    - 1200 (60)
    - 1260 (60)
    - 1320 (60)
    - 1380 (60)
    - 1440 (60)
    Last edited by Daniil; Dec 27, 2012 at 5:44 AM. Reason: [OPEN] [#93]
  2. #2
    Hi,

    I would consider it a bug excepting step 60 with
    MajorTickSteps(15)
    But I am not 100% sure and have no fix/workaround at the moment.

    I have reported it to Sencha.
    http://www.sencha.com/forum/showthread.php?210754

    Lets wait what they will answer.
  3. #3
    ExtJS has opened a bug ticket. We will monitor it.
  4. #4
    Quote Originally Posted by Daniil View Post
    ExtJS has opened a bug ticket. We will monitor it.
    Thanks, hopefully they can fix it soon :)
  5. #5
    Opened an Issue to track this defect.
    https://github.com/extnet/Ext.NET/issues/93

Similar Threads

  1. [CLOSED] NumericAxis Chart
    By pdcase in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Aug 02, 2012, 6:04 PM
  2. [CLOSED] maximum for numericaxis in charts only allows integer
    By CarpFisher in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 29, 2012, 2:57 PM
  3. Replies: 5
    Last Post: Dec 12, 2011, 7:29 AM
  4. Icon displayed/rendered incorrectly
    By sky73rx3 in forum 1.x Help
    Replies: 1
    Last Post: Sep 10, 2011, 6:52 AM
  5. TabPanel showing incorrectly
    By Argons in forum 1.x Help
    Replies: 4
    Last Post: Aug 12, 2009, 10:43 AM

Posting Permissions