Plotly interactive Graph Card

Hi!

Due to end-of-life of history explore card, I’m switching to plotly.

First of all congratulations for your card.

I’m currently trying to recreate one fo my cards (this one) with plotly.

I have a problem: as soon as I try the fill option, the yaxis goes to zero.

I would like to maintain:

  • both dynamic yaxis
  • and fill

Anybody knows a solution?

I found this topic: Maintain min/max axis control while still filling down to y axis as with fill='tozeroy' - 📊 Plotly Python - Plotly Community Forum

Is it possibile to achieve something like that in home assistant plotly integration?

Thank you very much

Andrea

I’m working on this very simple graph

type: custom:plotly-graph
entities:
  - entity: sensor.temperatura_app_9_camera_andrea
    name: temperatura
    fill: tozeroy
    fillcolor: rgba(244,209,96,0.3)
    line:
      color: rgba(244,209,96,1)
      width: 2
    show_value: true
    type: line
hours_to_show: 6
refresh_interval: 60
autorange_after_scroll: true
layout:
  showlegend: true
  xaxis:
    rangeselector:
      'y': 1.15
      buttons:
        - count: 30
          step: minute
        - count: 1
          step: hour
        - count: 6
          step: hour
        - count: 12
          step: hour
        - count: 1
          step: day
        - count: 7
          step: day