Y-Axis scale range issue

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

lokesh
Posts: 45
Joined: Tue Feb 14, 2017 8:48 am

Y-Axis scale range issue

Post by lokesh » Thu May 18, 2017 6:54 pm

Hi,
In the ViewXY, when I set Y-axis scale limits from 1e6 to -1e6, I am not able to do axis scrolling by click and hold on the axis ticks and dragging up or down. But, the title text of the Point line series is moving though. Could you please check this or am I not suppose to use such large ranges?!

Thanks,
Lokesh

ArctionKestutis
Posts: 383
Joined: Mon Mar 14, 2016 9:22 am

Re: Y-Axis scale range issue

Post by ArctionKestutis » Fri May 19, 2017 11:23 am

Hi Lokesh,

I zoomed out PointLine example to more than [-1M +1M] and then pan with mouse YAxis. I see no problem, also mouse-wheel scrolling on axis (zoom) still working. At least recent version of LightningChart worked.
Did I miss something?

All the best,
Kestutis

lokesh
Posts: 45
Joined: Tue Feb 14, 2017 8:48 am

Re: Y-Axis scale range issue

Post by lokesh » Fri Jun 02, 2017 4:06 pm

Hi Dr.,
Apologies for the late response. So, I tried this with a small point line series and that seems to be working fine for me as well.

The data I have issue with is below:
PLS1 X: -0.00245, 1.97995, 4.01696, 5.99433, 7.98602, 9.98323, 11.9811, 13.98583, 16.00338, 18.0143, 19.98524, 21.99307, 23.98959, 25.98044, 28.00661, 30.00665, 35.0014, 40.0164, 45.0139, 50.02565, 55.03843, 60.02122
PLS1 Y: 3.53759, -9770.76589, -9764.84187, -88568.6909, -49184.07341, -28561.88024, -26258.21864, -28184.73661, -49979.32542, -67436.45416, -4382728.07018, -36156.75605, -82294.22661, -46855.50426, -212428.77731, -53090.32201, -12833.90656, -4053.11866, -1974.12762, -1071.84102, -1087.84285, -1761.5158

PLS2 X: -0.00175, 1.97924, 4.01841, 5.99535, 7.98709, 9.9838, 11.98237, 13.98726, 16.00419, 18.01449, 19.98939, 21.99286, 23.99144, 25.98053, 28.00775, 30.00582, 35.00209, 40.01859, 45.00833, 50.02298, 55.0458, 60.02655
PLS2 Y: 5.13998, -5199.63221, -16886.89276, -8857.2028, -10308.44594, -15187.25699, -49184.67285, -131040.47218, -33712.90445, -32134.87576, -26967.13659, -49033.19733, -63629.33298, -86354.21791, -50867.68979, -58420.2718, -18083.23474, -5132.72051, -2261.98542, -1215.30808, -1015.16632, -1519.20181

PLS3 X: -0.00204, 1.97848, 4.01612, 5.99582, 7.98779, 9.98486, 11.98471, 13.98558, 16.00362, 18.011, 19.98646, 21.99443, 23.99174, 25.97992, 28.00797, 30.0069, 35.0014, 40.01676, 45.01068, 50.02403, 55.04406, 60.02247
PLS3 Y: 4.83603, -11752.88107, -18732.77205, -28703.23615, -130861.59895, -38944.02668, -32194.46086, -41830.41216, -33645.78997, -51412.99383, -29164.11551, -43360.99282, -60706.30804, -51933.87306, -58889.7603, -42315.68705, -14913.44159, -4440.54383, -2044.13744, -1141.49235, -1018.23004, -1562.06371

PLS4 X: -0.00184, 1.98092, 4.01595, 5.99559, 7.98627, 9.98365, 11.98276, 13.9837, 16.00135, 18.01365, 19.98456, 21.99125, 23.9893, 25.9831, 28.00307, 30.00573, 35, 40.01238, 45.01015, 50.02717, 55.04116, 60.01862
PLS4 Y: 8.6739, -3997.09639, -5498.88542, -20264.96992, -43293.07204, -31656.95532, -42328.44678, -50393.52769, -35356.62991, -133592.77662, -50380.82033, -204626.87262, 789641.21132, 155578.1091, 87133.82911, 32656.09899, -34489.55459, -5110.75801, -2061.3734, -1120.47576, -1060.63592, -1733.30415

PLS5 X: -0.00341, 1.97828, 4.01763, 5.99299, 7.98612, 9.98293, 11.98039, 13.98168, 16.00231, 18.0092, 19.97753, 21.97885, 23.97344, 25.95735, 27.97596, 29.97359, 34.96524, 39.97747, 44.97469, 49.99183, 55.00307, 59.98027
PLS5 Y: 13.99852, -5854.12364, -17210.52519, -254371.56197, -29668.33346, 53208.21341, 57876.28019, 17336.24303, 6355.82308, 3926.54142, 2482.2512, 1769.85738, 1309.02118, 1041.43998, 855.65693, 758.4232, 820.20171, 1131.88193, 2113.02048, -32567.75526, -20233.17246, 2960.46674

PLS6 X: -0.00235, 1.97829, 4.01658, 5.99093, 7.97977, 9.96775, 11.96273, 13.95124, 15.96041, 17.95922, 19.91587, 21.90995, 23.89275, 25.86653, 27.87873, 29.86509, 34.85693, 39.87127, 44.86739, 49.88102, 54.89242, 59.87415
PLS6 Y: 83.99106, -34250.24238, 4680.23887, 2287.97796, 1058.28984, 640.36723, 475.04932, 369.25372, 305.2076, 266.63525, 238.52318, 217.96217, 202.41712, 190.42386, 181.0761, 177.04829, 198.64441, 237.46525, 292.23706, 379.67068, 401.60092, 381.1101

PLS7 X: -0.00227, 1.97541, 3.9973, 5.95945, 7.92869, 9.90178, 11.87912, 13.85528, 15.85489, 17.83703, 19.79054, 21.77233, 23.75414, 25.72347, 27.73113, 29.71811, 34.70522, 39.71575, 44.71963, 49.74014, 54.73887, 59.72042
PLS7 Y: 7.34035, 271.79222, 162.23126, 125.86155, 109.92714, 100.12705, 93.86083, 89.78721, 87.30484, 85.78329, 84.49534, 83.80374, 83.4912, 83.28553, 83.4174, 84.8523, 97.20435, 113.84709, 134.42357, 159.57021, 168.28226, 168.96723

PLS8 X: -0.00383, 1.92747, 3.9223, 5.86721, 7.81141, 9.7767, 11.74024, 13.70766, 15.70085, 17.68063, 19.62672, 21.60115, 23.5857, 25.55243, 27.55648, 29.53644, 34.53223, 39.54919, 44.55413, 49.5747, 54.57201, 59.56124
PLS8 Y: -5.70652, 29.62475, 33.03875, 35.24158, 37.07432, 38.67275, 40.1964, 41.63827, 42.99878, 44.37397, 45.67313, 46.94312, 48.21924, 49.53421, 50.9569, 52.78101, 61.15704, 71.46043, 83.30553, 96.00441, 101.53376, 105.44868

PLS9 X: -0.00787, 1.8272, 3.79703, 5.7284, 7.65797, 9.6145, 11.56986, 13.53659, 15.52473, 17.50182, 19.45194, 21.42091, 23.4014, 25.3691, 27.37596, 29.35546, 34.35849, 39.37833, 44.39248, 49.39935, 54.39313, 59.38993
PLS9 Y: -1.8991, 9.90304, 14.09459, 17.03656, 19.43352, 21.60092, 23.51919, 25.35884, 27.0561, 28.68583, 30.20852, 31.67344, 33.15408, 34.57883, 36.0156, 37.72039, 44.12355, 51.52815, 60.08247, 67.58626, 71.76361, 76.947

PLS10 X: -0.00998, 1.6992, 3.63872, 5.5698, 7.4832, 9.44052, 11.38912, 13.35697, 15.3423, 17.32204, 19.2638, 21.24179, 23.21467, 25.18693, 27.18931, 29.17587, 34.17757, 39.20576, 44.23618, 49.21082, 54.21907, 59.22116
PLS10 Y: -1.57108, 4.97814, 8.03196, 10.43399, 12.48102, 14.36977, 16.10955, 17.75777, 19.32213, 20.8251, 22.24405, 23.64398, 25.01477, 26.34366, 27.70743, 29.23228, 34.43751, 40.35482, 47.00661, 51.63053, 55.4483, 60.00912

PLS11 X: -0.00902, 1.55589, 3.47487, 5.39649, 7.30189, 9.25573, 11.20675, 13.17228, 15.15393, 17.13516, 19.08194, 21.05665, 23.03135, 25.00085, 27.00575, 28.99697, 34.00201, 39.03416, 44.07468, 49.01823, 54.03638, 59.04816
PLS11 Y: -1.24776, 3.02418, 5.32168, 7.24002, 8.93178, 10.53742, 12.04638, 13.48491, 14.87773, 16.22854, 17.50381, 18.77713, 20.01181, 21.23328, 22.49062, 23.86902, 28.27749, 33.22183, 38.44264, 41.31114, 44.95924, 49.19114

PLS12 X: -0.01214, 1.40711, 3.2941, 5.20502, 7.11177, 9.05578, 11.01214, 12.97379, 14.96945, 16.93526, 18.89551, 20.86885, 22.8414, 24.81252, 26.82237, 28.81278, 33.82724, 38.86816, 43.89346, 48.83887, 53.86079, 58.89109
PLS12 Y: -1.5126, 2.03331, 3.79517, 5.3578, 6.78492, 8.15407, 9.45773, 10.72376, 12.04845, 13.14885, 14.40317, 15.5486, 16.56975, 17.68187, 18.83284, 20.08089, 23.89368, 28.18328, 32.01778, 34.80044, 38.3224, 42.22413

PLS13 X: -0.01048, 1.29453, 3.12913, 5.02875, 6.93443, 8.87858, 10.83478, 12.79728, 14.78603, 16.76134, 18.71771, 20.69025, 22.676, 24.6489, 26.6599, 28.65701, 33.67792, 38.72163, 43.70801, 48.67374, 53.7078, 58.73607
PLS13 Y: -1.20822, 1.56644, 2.93804, 4.261, 5.49762, 6.69955, 7.85991, 8.98702, 10.09887, 11.17634, 12.2316, 13.27122, 14.30894, 15.33756, 16.4002, 17.54394, 20.97466, 24.77287, 27.40484, 30.26089, 33.64484, 37.16652

PLS14 X: -0.01133, 1.22817, 2.96343, 4.8553, 6.75073, 8.70025, 10.65523, 12.62465, 14.61038, 16.59837, 18.55179, 20.53433, 22.51654, 24.49872, 26.51441, 28.51272, 33.53864, 38.57471, 43.55363, 48.52922, 53.56535, 58.59655
PLS14 Y: -1.27988, 1.35537, 2.34481, 3.48353, 4.56001, 5.62945, 6.6686, 7.68681, 8.69241, 9.68401, 10.64067, 11.60326, 12.55033, 13.50748, 14.49876, 15.55132, 18.65436, 21.85666, 24.11987, 27.00136, 30.13154, 33.31343

PLS15 X: -0.01239, 1.1679, 2.66952, 4.52966, 6.43138, 8.38433, 10.35256
PLS15 Y: -1.39621, 1.19194, 1.64162, 2.49509, 3.35908, 4.22677, 5.08413

PLS16 X: -0.01333, 1.12072, 2.46575, 4.15591
PLS16 Y: -1.4775, 1.08042, 1.29023, 1.70339
The y axis range -1e5 to 1e5 seems to be working fine, but if I put the min and max values or -1e6 to 1e6 on y axis, then it is not panning properly.

Thanks,
Lokesh

ArctionKestutis
Posts: 383
Joined: Mon Mar 14, 2016 9:22 am

Re: Y-Axis scale range issue

Post by ArctionKestutis » Fri Jun 02, 2017 4:12 pm

Hi Lokesh,

Could you send the complete project? It is painful to enter point by hand and it is not clear how many axis you have. Other setting may be also important.

All the best.

lokesh
Posts: 45
Joined: Tue Feb 14, 2017 8:48 am

Re: Y-Axis scale range issue

Post by lokesh » Fri Jun 02, 2017 6:32 pm

Hi Dr.,
Thanks for the quick response.
I was trying to debug it myself a bit and turns out, it is actually a stupid bug in my code.

Sorry for all the trouble.

Thanks again.

- Lokesh