knowthelist / ftui

FTUI version 3
MIT License
32 stars 21 forks source link

Messed up charts due to missing "now" value #56

Open normen opened 6 months ago

normen commented 6 months ago

Hi,

when using charts, especially with "stepped" for on/off switches theres an issue where the "now" point somehow isn't in the diagram and the graph gets rendered wrong. See the below screenshot for an idea about what I mean. The yellow should be a big block all the way to the right, as the light is still "on" when the screenshot is taken.

The only special settings of the graphs are stepped and point-radius=0

Bildschirmfoto 2024-04-10 um 15 51 48

Tested in Safari on iOS and MacOS as well as Firefox on MacOS

Thanks for ftui, it's great!

knowthelist commented 6 months ago

Please, could you give me your log data as a string for debugging your case on my site. Like this: 2024-04-15_01:28:22 0 2024-04-15_07:28:11 1 2024-04-15_11:28:22 0 2024-04-15_17:28:42 1 You can get the data from your browser's Developer Tools > Network tab > the Response of a ?cmd=get.... Get Request