Chartjs-How to use chart.js to plot line chart with x axis as time stamp in seconds

0👍

Well, I assume you know HTML/JavaScript/CSS, websockets, etc to use chart.js in your apps.

Here is a related post that might be of help to get you started….
Chart.js number Y-AXIS label format for many decimal places

You just have to get started somewhere, sometime!!!

Good luck.

0👍

Use the addData method.

From the documentation at http://www.chartjs.org/docs/#advanced-usage-prototype-methods

.addData( valuesArray, label )

Calling addData(valuesArray, label) on your Chart instance passing an
array of values for each dataset, along with a label for those points.

// The values array passed into addData should be one for each dataset in the chart
myLineChart.addData([40, 60], "August");
// This new data will now animate at the end of the chart.

Leave a comment