Hi,
in my application i use a monotonic time to record the values.
The monotonic time variable has the datatype "ulong".
In the screenshot you can see that the text is too long for the X axis and is therefore not displayed.
I would like to show a relativ time on x-axis regardless of the x-axis value.
E.g.: values on the X-axis: "100 ... 0" or in the other case in the other direction "0 ... 100"
thank you very much
Igor
relative time on x-axis
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: relative time on x-axis
Hi Igor,
I think the easiest approach is to use two X axes.
xAxis1:
- attach your series to this axis.
- set Visible = false for the xAxis1
xAxis2:
- Set Reversed = True.
- axis2.SetRange(0, xAxis1.Maximum - xAxis1.Minimum);
You zoom your view, remember to update the axis2 range.
When you are monitoring your data, the xAxis2 will be static, and the data flows as xAxis1 scrolls.
Something like this![Wink ;)](./images/smilies/icon_e_wink.gif)
I think the easiest approach is to use two X axes.
xAxis1:
- attach your series to this axis.
- set Visible = false for the xAxis1
xAxis2:
- Set Reversed = True.
- axis2.SetRange(0, xAxis1.Maximum - xAxis1.Minimum);
You zoom your view, remember to update the axis2 range.
When you are monitoring your data, the xAxis2 will be static, and the data flows as xAxis1 scrolls.
Something like this
![Wink ;)](./images/smilies/icon_e_wink.gif)
LightningChart Support Team, PT
Re: relative time on x-axis
thank you. Works fine for me ![Smile :-)](./images/smilies/icon_e_smile.gif)
![Smile :-)](./images/smilies/icon_e_smile.gif)