kalkih / mini-graph-card

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

Showing all data points #1031

Closed dopeytree closed 5 months ago

dopeytree commented 7 months ago

Hi having some issues with all data points showing even when turned off.

Here we have our 4 sensors overlaid onto one card. They are all temperature sensors essentially in different parts of the house.

Screenshot 2023-11-19 at 01 32 02

If you hover over a line this you get the detail of one sensors history. This is working correctly.

Screenshot 2023-11-19 at 01 32 15

However when you then stop the 'hover' over the line and it should refresh the graph, it is instead showing all points ever recorded - which looks super messy..

Screenshot 2023-11-19 at 01 32 07

This is the code I am using

Screenshot 2023-11-19 at 01 32 22
type: custom:mini-graph-card
name: Temperature
show:
  state: true
  average: false
  extrema: true
  labels: false
  legend: true
  fill: false
  show_points: true
  icon_adaptive_color: true
  name_adaptive_color: true
hours_to_show: 24
points_per_hour: 3
line_width: 1
entities:
  - entity: sensor.1_garden_temperature
    color: '#02a8f4'
  - entity: sensor.2_phonebox_temperature
    color: '#ff9800'
  - entity: sensor.3_greenhouse_temperature
    color: '#f44336'
  - entity: sensor.4_shed_temperature
    color: '#e91e63'
  - entity: sensor.7_barn_temperature
    color: '#9c27b0'
ildar170975 commented 7 months ago

Provide a properly formatted code. The code you posted is impossible to analyze. Paste a code into triple “`”. Also, the “show_points” is misplaced.

ildar170975 commented 5 months ago

Default value of points is hover. image Whenever a mouse pointer is on the card - points are shown.

Expected behaviour.

dopeytree commented 5 months ago

It was definitely a bug but likely fixed or using different parameters it doesn't happen any longer.

Screenshot 2024-01-22 at 18 45 44 Screenshot 2024-01-22 at 18 45 57

Really the solution is to use this plugin for a pretty overview and then have another tab with a full screen graph drawn with the other graph plugin for a detailed look. Gives best of best worlds.

Screenshot 2024-01-22 at 18 46 07
ildar170975 commented 5 months ago

was definitely a bug but likely fixed or using different parameters it doesn't happen any longer

Fixed when and by whom? Do you know when the last release was issued?