Jac Posted January 28, 2009 Report Share Posted January 28, 2009 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 Quote Link to comment Share on other sites More sharing options...
CarlosAC Posted February 5, 2009 Report Share Posted February 5, 2009 Dear Jac. Unfortunately, you cannot use YX data when you work with real time feature of Chart FX. I ran some tests and I was able to simulate a real time chart using XY data. I am attaching my project as a zip file. I hope this helps. Quote Link to comment Share on other sites More sharing options...
Jac Posted February 6, 2009 Author Report Share Posted February 6, 2009 Hi, thanks for the example. It was exactly how I wanted it. BR Jac Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.