You must be logged in to post your query.
Home › Forums › Chart Support › X Axis : display real system time
Is there anyway to display X Axis data points as system time, type hh:mm:ss. My data points is real-time, which mean dynamic chart, getting by 1 second, so I just want to find out it’s possible to display X Axis as system time or not. Please help me !
Yes, it is possible to show date & time on x axis. Just set the x value to current time just before adding it to the dataPoints array. Below is how it would look.
chart.options.data[0].dataPoints.push({x: new Date(), y: 5});
And set valueFormatString to “hh:mm:ss.
— Sunil Urs
Thank you so much for helping me out ! I’ll try to fix my code right now !
You must be logged in to reply to this topic. Login/Register