Hi,
i wonder where I can find the minimum and maximum values of the currently visible XAxis.
With YAxis it's posible to use Chart.ViewXY.YAxes[0].Minimum/.Maximum.
But with XAxis I get Minimum and Maximum of all available values.
I use ScrollPosition and SetRange to change the visible XAxis and want to position a cursor within the visible Range.
Is there a chance?
Regards
Dirk
Min/Max values of visible XAxis
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Min/Max values of visible XAxis
xAxis.Minimum and Maximum give the current range for you.
Code: Select all
//Set range
m_chart.ViewXY.XAxes[0].SetRange(3.0, 5.5);
//Set the nearest point from middle of range, cursor has SnapToPoints enabled
m_chart.ViewXY.LineSeriesCursors[0].ValueAtXAxis = (m_chart.ViewXY.XAxes[0].Minimum + m_chart.ViewXY.XAxes[0].Maximum)/2.0;
LightningChart Support Team, PT
Re: Min/Max values of visible XAxis
!!! Please delete this thread !!!
You are absolutely right, sorry for bothering you...
It was my fault, unable to position a cursor to one third of screen .
Thanks for great and fast support !!!
Dirk
You are absolutely right, sorry for bothering you...
It was my fault, unable to position a cursor to one third of screen .
Thanks for great and fast support !!!
Dirk