Horizontal scrolling for x-axis of type timestamp #644
Replies: 4 comments
-
You'll need to update the options when you update the data. Eg: chart.data.datasets[0].data.push(Math.random());
|
Beta Was this translation helpful? Give feedback.
-
Sorry I could've clarfied, the values on my x-axis are in HH:mm:ss |
Beta Was this translation helpful? Give feedback.
-
So the x-axis type is |
Beta Was this translation helpful? Give feedback.
-
Sorry I'm not familiar with the category type, and yes |
Beta Was this translation helpful? Give feedback.
-
In the documentation, the parameters for scale limits are min, max, and minRange (max-min). In my project, data is added to the database in regular intervals, and I want the graph to start scrolling horizontally after a certain number of points. How can I accomplish this? min and max won't work because the data is constantly moving forward in time. Even a parameter like 'maxRange' wouldn't work because data from two days may appear at the same time, so the most recent timestamp - the oldest timestamp would yield a negative value.
Beta Was this translation helpful? Give feedback.
All reactions