Skip to content

Problem with Autoscale #604

@jotric1978

Description

@jotric1978

I have this code in YAML:

YAML

 type: custom:plotly-graph
layout:
  barmode: group
  height: 380
  margin:
    l: 36
    r: 10
    t: 6
    b: 72
  paper_bgcolor: transparent
  plot_bgcolor: transparent
  xaxis:
    type: category
    tickangle: -35
    automargin: true
  yaxis:
    type: linear
    min_y_axis: 0
    max_y_axis: 200
    tickformat: .0f
    showgrid: true
    gridcolor: rgba(180,180,180,0.25)
hovermode: x unified
entities:
  - entity: ""
    type: bar
    name: Potenza
    showlegend: false
    x:
      - QC1-2
      - QC3
      - QC4
      - QC5
      - QC6
      - QC7-8
      - QC9-10
      - QC11
      - QCC
      - QSU
    "y":
      - 120
      - 85
      - 30
      - 55
      - 10
      - 75
      - 60
      - 15
      - 150
      - 40
    width: 0.6

When I save the code in HA I can't see my graph till I push the autoscale button. If i make a refresh in the window I have to push again the autoscale.
20 / 5.000
Where am I going wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions