kalkih / mini-graph-card

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

Unable to set range correctly #1090

Closed wolf99 closed 3 months ago

wolf99 commented 3 months ago

Hi there,

Firstly thank you for such a great card!

Probably this is more of a question than any issue or bug report. I cannot figure out how to correctly set the height that the y- axiz should show.

My graph shows humidity, so the Y-axis should show from 0 to 100% at all times, this would mean that changes from (for example) 99% to 98% would look very small. But instead my configuration is only showing the Y-axis with the min and max so far, whereby the change from 94% to 99% looks like the entire verticle height of the graph.

Please could someone indicate what I am doing wrong?

Apologies but I could not figure it out myself after reading the README.md

My configuration:

type: custom:mini-graph-card
name: Owlet O2 Saturation
entities:
  - entity: sensor.owlet_baby_care_sock_o2_saturation
    name: O2 Saturation
    show_state: true
    y_axis: secondary
hours_to_show: 36
lower_bound: 0
upper_bound: 100
min_bound_range: 100
color_thresholds_transition: hard
show:
  extrema: true
  average: true
  icon_adaptive_color: true
  labels: true
color_thresholds:
  - value: 0
    color: '#ed4c3e'
  - value: 90
    color: '#7ef97d'
  - value: 100
    color: '#7ef97d'

Screenshot:

image

wolf99 commented 3 months ago

I just figured out I had the entity on the secondary axis 🙊