Home Forums Chart Support X Axis : display real system time

X Axis : display real system time

Viewing 3 posts - 1 through 3 (of 3 total)
  • #4870

    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 !

    • This topic was modified 11 years, 3 months ago by dungeonlegend.
    #4876

    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

    #4877

    Thank you so much for helping me out ! I’ll try to fix my code right now !

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.