Jump to content
Software FX Community

Real-time chart with time values on X-axis

User (Legacy)

Recommended Posts


I'm a new user of the Chart98 control, and am trying to create a real-time

XY chart (just like a stripchart), and I'm running into some (user) issues:

1) I'm setting [ pXAxis->Format = "THH:mm:ss"] so that each major(?) tick

displays the time. However, I'm not sure how to update each tick with the

correct time. What I see at the moment is a random time on each tick, but I

need them to be correct and sequential. How can I set the tick label with

the correct time associated with that point? Note that I have multiple

series which may have a slightly different time with each point.

How I'm trying to set the X value for the point I just added is as follows:

m_pChartFX->OpenDataEx((CfxCod) (COD_XVALUES), 2, 1);

for(int i=0; i<2; i++)







2) Related to #1), I only want to show the times at the beginning and end of

the chart, but still have ticks in between. On the example I'm working on,

the times move off the chart when the tick (and associated point) moves off

the chart.

Thanks for your help!


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...