joewalnes / smoothie

Smoothie Charts: smooooooth JavaScript charts for realtime streaming data
http://smoothiecharts.org
Other
2.25k stars 232 forks source link

Plotting with Time on x-axis #67

Closed Shrest closed 8 years ago

Shrest commented 8 years ago

I have plotted data stream from web socket on a chart, with x-axis values defined by new Date().getTime().

Thanks.

drewnoakes commented 8 years ago

To show time values on the x-axis:

new SmoothieChart({timestampFormatter:SmoothieChart.timeFormatter});

To label x/y axes, superimposing DOM elements is probably easiest. There's no way of doing this that's built in.