Jump to content
Software FX Community

Real-time trend, feeding time on x-axis


Recommended Posts

I have a real-time trend where you feed a new point every second or so. But now I want to show the time in the x-axis. I have added the code below when creating the chart but how do I feed it with the data?

trend.AxisX.LabelsFormat.Format = ChartFX.WinForms.AxisFormat.DateTime;trend.AxisX.LabelsFormat.CustomFormat = "HH:mm:ss";

trend.AxisX.DataFormat.Format = ChartFX.WinForms.

AxisFormat.DateTime;trend.AxisX.DataFormat.CustomFormat = "HH:mm:ss";

I guess that the solution for this is quite simple but I just haven't managed to get it to work. Do I have to update all the labels manually or could I just feed the chart with the time it should have in point 0 (to the far right) and the chart will calculate what time to show in the x-axis labels?

 If someone have an example I would be most grateful.

 / Jac

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...