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

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...