kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.97k stars 232 forks source link

split range time scale - feature request #820

Closed Hootie81 closed 1 year ago

Hootie81 commented 2 years ago

Hi, would it be possible to get a split time scale?

I'm interested in 24hr history and last hour. currently i use a grid card with 2 mini-graph-cards side by side, one has a 24hr timespan, the other with 1hr, however the 24hr graph also includes the 1hr data.

My thoughts are something like this

type: custom:mini-graph-card
entities:
  - sensor.living_room_temp
name: LIVING ROOM
hours_to_show: 24
points_per_hour: 0.25
hours_to_show_detail: 1
points_per_hour_detail: 60
detail_width_percent: 15

where we can set the overall timespan, and a detailed timespan and be able to adjust the width and datapoints. also include a thin vertical line to show the split location.

A bit of paintbrush magic to show my current setup vs what i would like image

stale[bot] commented 1 year ago

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!