kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.87k stars 231 forks source link

[FR] Add a "stepline" transition #1038

Open ildar170975 opened 7 months ago

ildar170975 commented 7 months ago

Currently 2 points are connected by a line (which can also be smoothed). In some cases it gives a wrong impression about a state between these points:

изображение

Here red points are generated by mini-graph-card based on actual readings from DB. A blue point is located between two red points.

Proposal: add a "stepline" transition (like in a standard history-graph):

изображение

This option should not be used together with smoothing: true. Also, this option should be per-entity (and also can be defined on a card's level globally for all entities; per-entity definition has a priority).