HighLowSeriesPoint

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

hyetc
Posts: 10
Joined: Fri Oct 09, 2020 9:26 am

HighLowSeriesPoint

Post by hyetc » Mon Feb 22, 2021 8:51 am

When the last X value in an X array is set to infinity, the effect is reversed
Attachments
NormalDisplay.png
NormalDisplay.png (27.06 KiB) Viewed 792 times
360截图184307046470103.png
360截图184307046470103.png (30.18 KiB) Viewed 792 times

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

Re: HighLowSeriesPoint

Post by ArctionKestutis » Mon Feb 22, 2021 4:10 pm

Infinity is slippery thing. Don't use it unless you sure it is supported and do things as you intended.
Is it just report, is it problem description? Are there particular reasons why x-point should be at infinity?

hyetc
Posts: 10
Joined: Fri Oct 09, 2020 9:26 am

Re: HighLowSeriesPoint

Post by hyetc » Tue Feb 23, 2021 12:49 am

Because this graph can be moved, for our purposes there is a point in theory where the Y value is fixed no matter what the X value is,So the last point is going to be positive infinity

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

Re: HighLowSeriesPoint

Post by ArctionKestutis » Tue Feb 23, 2021 10:30 am

Concept of Infinity is important in Algebra, but for numerical analysis done with computer it is dangerous path. Unless mathematical software package is design to deal with infinity, it is very likely source of the problems. Either you run get overflow error or just strange results.
Keep your last points at XAxis.Maximum (or some finite value you not going to overcome). If needed, you can use Axis.RangeChanged event to update last points coordinates.

hyetc
Posts: 10
Joined: Fri Oct 09, 2020 9:26 am

Re: HighLowSeriesPoint

Post by hyetc » Wed Feb 24, 2021 3:26 am

Even if you don't use infinity, using Double. Maxvalue has the same problem