Hi,
I have a simple (I guessed) problem.
I use a linechart which displays datapoints with a DateTime for the XAxis.
It has between 20 and 100 datapoints. (the point distance is between 0.1 and 0.8 seconds).
All I want are labels on the XAxis which show every second a tick and an alternate view which shows all 2 seconds a tick.
I guess I do something completely wrong :)
To find the value I display the label in the format "ss.f"
I messed around with the two seconds an reached now at this point:
rcData.DefaultView.ChartArea.AxisX.Step = 0.000022890946517388024;
But still I have some "drift" - this means I get:
17.3, 19.4, 21.5...and it ends in 37.9, 40.0 instead of 39...
Since I can't imagine that it is that difficult to have a XAxis with labels for one second or 2 seconds it stop playing around and ask for a solution here; because I think what I try it totally wrong.
So the simple question:
a.) how to have a XAxis with labels every second
b.) how to have a XAxis with labels every 2 seconds
Regards
Manfred
I have a simple (I guessed) problem.
I use a linechart which displays datapoints with a DateTime for the XAxis.
It has between 20 and 100 datapoints. (the point distance is between 0.1 and 0.8 seconds).
All I want are labels on the XAxis which show every second a tick and an alternate view which shows all 2 seconds a tick.
I guess I do something completely wrong :)
To find the value I display the label in the format "ss.f"
I messed around with the two seconds an reached now at this point:
rcData.DefaultView.ChartArea.AxisX.Step = 0.000022890946517388024;
But still I have some "drift" - this means I get:
17.3, 19.4, 21.5...and it ends in 37.9, 40.0 instead of 39...
Since I can't imagine that it is that difficult to have a XAxis with labels for one second or 2 seconds it stop playing around and ask for a solution here; because I think what I try it totally wrong.
So the simple question:
a.) how to have a XAxis with labels every second
b.) how to have a XAxis with labels every 2 seconds
Regards
Manfred