Doc + working live

This commit is contained in:
l_samenv
2024-09-13 16:40:06 +02:00
parent 45e1957fd7
commit 638f77a047
2 changed files with 3 additions and 3 deletions

View File

@ -7,6 +7,7 @@ This repository contains the code of the server for the control and graphical pa
**IMPORTANT**
This branch is an attempt to migrate from ChartJS 2.9.4 to 4.4.4.
TESTED ON SAFARI : with this new version, the application takes much less RAM, and does not crash at some point. The user can still experience some latencies, but it might be due to the presence of too many time axis labels + the fact that each graphs has its own (for the moment).
Here is a list of what has been done :
- Uprgaded the ChartJS zoom plugin library, and changed the corresponding options in the chart configuration. The previous version was not working with the version 4.4.4 of ChartJS
@ -21,6 +22,8 @@ Here is a list of what needs to be done :
- Labels of the x axis are not displayed in the desired format, and do not rescale properly on zooming/dezooming. There can be too much labels, that make them rotate and invisible.
- The cursor now also displays when the click ends, which is not the same behavior as before.
- Make the zoom type toggle work again.
- Make the zoom via touchpad less sensitive. The recent tests have shown that the zoom via gesture is very sensitive. Two things can be looked for : 1. see if there is the possibility to adapt the sensitivity of the zoom for the touchpad only or 2. update the library Hammer.js which is used by ChartJS to handle this type of gesture (even if the current version is 0.0.1 version later than the last one, this might be an explanation).
- Display only one time axis.
**Summary**

View File

@ -151,9 +151,6 @@ class InfluxGraph:
{"type":"accept-graph", "live": bool} : a dict with its "accept-graph" type and a "live" value telling if the server could change its visualization mode to live
"""
logging.info("UPD GRAPH %d", self.livemode)
# DISABLE LIVE UPDATE FOR THE MOMENT
self.livemode = self.HISTORICAL
return dict(type='accept-graph', live=False)
if self.livemode == self.HISTORICAL:
return dict(type='accept-graph', live=False)
else: