The open source JavaScript graphing library that powers Plotly

Show Sidebar Hide Sidebar

Time Series in plotly.js

How to plot D3.js-based date and time in Plotly.js. An example of a time-series plot.

var data = [
    x: ['2013-10-04 22:23:00', '2013-11-04 22:23:00', '2013-12-04 22:23:00'],
    y: [1, 3, 6],
    type: 'scatter'

Plotly.newPlot('myDiv', data);

plotly.js runs on all SVG-compatible browsers

Still need help?
Contact Us

For guaranteed 24 hour response turnarounds, upgrade to a Developer Support Plan.