You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When resizing the canvas, I'd like to millisPerPixel stay relative to the canva's width. Can I do that?
var elem = document.getElementById("chart");
var chart = new SmoothieChart({millisPerPixel: 1000 * 100 / elem.width, maxDataSetLength:2, grid: { millisPerLine: 1000, verticalSections: 1 }});
This way I always has 100 seconds of data worth on the chart with data points arriving one per second. The desire is to keep it this way even when the canvas is resized. Possible?
The text was updated successfully, but these errors were encountered:
AndrewSav
changed the title
(How) can I change millisPerPixel on the fly?
(How) can I change millisPerPixel on the fly while resizing?
Apr 29, 2016
When resizing the canvas, I'd like to millisPerPixel stay relative to the canva's width. Can I do that?
This way I always has 100 seconds of data worth on the chart with data points arriving one per second. The desire is to keep it this way even when the canvas is resized. Possible?
The text was updated successfully, but these errors were encountered: