How to increase the length of history plotted by smoothie.js?

173 views
Skip to first unread message

Steven R

unread,
Sep 21, 2018, 8:46:40 AM9/21/18
to Smoothie Charts
I am using Django Channels to push updates to a smoothe.js chart once every second. 

My problem is that the chart does not retain a history longer than 30 seconds. What can I do to get smoothie.js to plot more data and retain a longer history? 

David Zuliani

unread,
Sep 21, 2018, 8:58:10 AM9/21/18
to Smoothie Charts
Hi,

you can increase the millisPerPixel parameter to incresae your history.
e.g.:
var smoothie = new SmoothieChart({
                millisPerPixel: 1000,
            });
Reply all
Reply to author
Forward
0 new messages