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
I´m developing a project with an arduino(MCU) that consists in a voltmeter that shows the values in a web page.
The project is monitoring and saving the values for logs.
I´m using ChartJS type line as a data presenter, showing 3 datas, these are "Date" as labels, "VoltsMin" and VoltsMax" as data in the chart structure.
The MCU is reading the voltage in real time and it register the VoltsMax and VoltsMin every 5 minutes interval, meaning that in each 5 minutes interval it saves the values and the date and than sends the new data to the web browser.
The Web browser is running ChartsJS, and it´s updating the values in the chart correctly.
The issue is, when the chart is overpopulated the points get to close to each other, to a point that it stops showing the new data.
I´m trying to use the pan plugin, but the issue is a bit different. When the chart gets overpopulated, it´s stops moving to the new data points automatically, I have to constantly move the chart to check if there is new data, which is impractical. All data after that point is hidden, and I don´t even know that it exists, until I move the chart.
The Solution.
I´m sure there is a way that would solve this, but the documentation is very weak on the line codes that exist for the library.
A way of fixing this would be a piece of code in the library, that would allow the user input a value in order to determine the maximum number of data to present, and once its met, it keeps the old data registered but moves the chart to the new incoming data, but would not move the chart if the user is viewing the old data. Only move the chart automatically when its rendering the last incoming data.
Example:
Limit data to present is 10. After the 10th data, the chart starts to move to the new incoming data. The chart could be moved back to check the old data.
Pan could have an option similar to this in the Zoom plugin, I guess...
I don´t know how to do this in machine language, but I understand by human language what it needs.
I appreciate any incoming help regarding this, as it will be useful to many others, for sure...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I´m developing a project with an arduino(MCU) that consists in a voltmeter that shows the values in a web page.
The project is monitoring and saving the values for logs.
I´m using ChartJS type line as a data presenter, showing 3 datas, these are "Date" as labels, "VoltsMin" and VoltsMax" as data in the chart structure.
The MCU is reading the voltage in real time and it register the VoltsMax and VoltsMin every 5 minutes interval, meaning that in each 5 minutes interval it saves the values and the date and than sends the new data to the web browser.
The Web browser is running ChartsJS, and it´s updating the values in the chart correctly.
The issue is, when the chart is overpopulated the points get to close to each other, to a point that it stops showing the new data.
I´m trying to use the pan plugin, but the issue is a bit different. When the chart gets overpopulated, it´s stops moving to the new data points automatically, I have to constantly move the chart to check if there is new data, which is impractical. All data after that point is hidden, and I don´t even know that it exists, until I move the chart.
The Solution.
I´m sure there is a way that would solve this, but the documentation is very weak on the line codes that exist for the library.
A way of fixing this would be a piece of code in the library, that would allow the user input a value in order to determine the maximum number of data to present, and once its met, it keeps the old data registered but moves the chart to the new incoming data, but would not move the chart if the user is viewing the old data. Only move the chart automatically when its rendering the last incoming data.
Example:
Limit data to present is 10. After the 10th data, the chart starts to move to the new incoming data. The chart could be moved back to check the old data.
Pan could have an option similar to this in the Zoom plugin, I guess...
I don´t know how to do this in machine language, but I understand by human language what it needs.
I appreciate any incoming help regarding this, as it will be useful to many others, for sure...
Cheers
Beta Was this translation helpful? Give feedback.
All reactions