May 29, 2012, 7:09 AM
[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)
- 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
- 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
- 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)
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]