mini-graph-card icon indicating copy to clipboard operation
mini-graph-card copied to clipboard

Add option to display gaps in data (unavailable state)

Open agneevX opened this issue 3 years ago • 7 comments

Please add an option that enables the graph to start from the position when the data was last updated.

That way there aren't flat lines in the graph where there is no data.

image

agneevX avatar Aug 03 '20 07:08 agneevX

This is the biggest issue for me. Any missing/null value is ignored. The standard history graph does properly show that there is no data in that range as opposed to a constant value. Grafana allows specifying the behavior in that case (either like Lovelace standard history graph or like the current mini-graph-card). Depending on the situation I understand that one of those two may be optimal.

Possibly a sane option would be a time range after which it would consider that there is no data as opposed to using the latest known value.

wernight avatar Jan 05 '22 09:01 wernight

Probably same as https://github.com/kalkih/mini-graph-card/issues/678

ildar170975 avatar Jan 05 '22 10:01 ildar170975

From #678

Is it possible to display gaps for periods where the sensor is unavailable ?

Look at these conventional graphs: изображение They have gaps for these periods.

jlsjonas avatar Jan 16 '22 08:01 jlsjonas

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

stale[bot] avatar Mar 17 '22 12:03 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this is still an active issue, please let us know!

stale[bot] avatar May 16 '22 16:05 stale[bot]

skipping another year ...

This is still a problem in 2023 and driving me nuts. Missing values are something that simply happens. Progressing the last known value leads to weird results, especially if the intermediate points are just "invented".

The following graph will make me believe my solar panels produced > 1kW of power in an overcast and dark night at just past 1am. Wish they had... I'm well below northern tropic. We do not get midnight sun here. ;-)

image

I'd like to add my vote on this issue.

rorso avatar May 24 '23 16:05 rorso

This happened for me with a new Sensor which only has data for the last day in this graph but because of the current behaviour the data is not only displayed for the current day but also for a previous day instead of going to zero as I would have expected. 297842921-51beeb7f-80aa-4a4f-a168-d18d06773958 297843024-169ce16c-8cc6-4d06-9c7a-25ecc86f56d6 As previously mentioned in #1056 this will self heal in a week, just leaving it here for reference in case this gets handled in the future.

LayerCakeMakes avatar Jan 20 '24 10:01 LayerCakeMakes

Anything new on this? Thanks

psyhomb avatar Mar 11 '24 11:03 psyhomb