kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
3.01k stars 234 forks source link

[FR] Add 'step' transitions between points #914

Closed TimothyJCowen closed 10 months ago

TimothyJCowen commented 1 year ago

I have a use-case where I would like to display a step-graph, rather than a traditional linear graph. It would be nice to be able to change lines to show as steps rather than linear transitions.

igorsantos07 commented 1 year ago

Any chance a bar graph with no space in-between bars would work? You could even try -1 for the bar spacing... The thing is: you can't have a transparent fill to it, so no way to use multiple entities lol

Check what I've done with my bar graphs: image

ildar170975 commented 1 year ago

@igorsantos07 Please do not post your questions inside unrelated issues.

igorsantos07 commented 1 year ago

Lol that's so random, I guess you need to interpret it again. It wasn't a question question, it's "does this solve your issue"?

ildar170975 commented 1 year ago

I got your point. The person asked about a graph similar to a conventional history-graph where each step corresponds to each state’s change. The mini-graph-card shows interpolated graph. To make it as detailed as the history-graph, a corresponding value of “points_per_hour” (at least same as a sensor’s frequency) must be used - and anyway it will not show a step but a line.

As for the bar graph: it is much much much less accurate than linear graph. It could be accurate only when number of bars equal to a number of actual changes.

ildar170975 commented 10 months ago

Closed in favour of https://github.com/kalkih/mini-graph-card/issues/1038