luciozambon / eGiga2m

eGiga2m is a web graphic data viewer.
GNU General Public License v3.0
1 stars 3 forks source link

display with min & max defined #4

Closed PhilLAL closed 3 years ago

PhilLAL commented 3 years ago

Hi Lucio, we use flot.js for display in eGiga2m and when we let Config panel with default parameters, plot displays correctly, as followed (please note min & max values in left scale axis): screenshot

When we configure Config panel with min value, max value, or min & max values, a waiting wheel displays and no plot appears. This occurs whatever the min value (resp. max) is lesser than the minimal value which displays in the plot scale (on the left axis) as follows :

screenshot

screenshot

If Show time series data in a table is checked in Configpanel, the table displays.

If we erase the value entered in min and/or max, the plot displays.

Do you have any idea how to solve this? Thank you

PhilLAL commented 3 years ago

Hi @luciozambon this problem is really a pain in the ass for our users since they cannot see their data. Do you have any idea of a workaround if no solution exists in short term? Thank you

luciozambon commented 3 years ago

I did a bugfix on egiga2m.js and egiga2m.min.js now you shouldn't go into infinite loop, but the management of max and min by flot seems poor. If I had enough time I would substitute flot with something like https://webgl-plot.vercel.app/ or https://www.chartjs.org/ Any volonteer?

PhilLAL commented 3 years ago

It works, thank you very much for this fast patch :)

However, I am sorry but I would not have the skills to replace flot by another tool.