question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

graph doesn't show in picture element?

See original GitHub issue

Hi, In normal mode, I try this code, everything shows good.

         cards:
          - entity: weather.stclair_hourly
            show_main: true
            show_attributes: false
            type: custom:weather-chart-card

Screen Shot 2022-05-03 at 14 59 45

But when I put this in a picture-element, the graph doesn’t showed, I can only see the attributes.

     cards:
      - type: picture-elements
        image: /local/ui/weather.png
        elements:
          - entity: weather.stclair_hourly
            show_main: true
            show_attributes: true
            style: |
              :host {
                left: 58.5%;
                top:  76%;
                width: 70%;
                height: 100%;
              }
    
              ha-card {
                height: 100%;
                border-radius: 1vw;
                font-size: 1.2vw !important;
              }
            type: custom:weather-chart-card

Screen Shot 2022-05-03 at 15 08 22

anyone can help?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
sekonicprcommented, Jul 1, 2022

Thank!!! It just work. image

1reaction
leotantantancommented, Jul 1, 2022

Hi Slalamander, sorry to the late reply.

Thanks so much, it works ! I’m so happy with the result, but still don’t know why 😂

Anyway, it finally works.

Screen Shot 2022-07-01 at 21 04 18

Read more comments on GitHub >

github_iconTop Results From Across the Web

Weather-chart-card doesn't show corecctly in picture- ...
Hi, Hi, In a normal dashboard, I try this code, everything shows good. But when I put this in a picture-element, the graph...
Read more >
Use a picture in a chart
Click the chart area of the chart. On the Insert tab, in the Illustrations group, click Pictures. Shows the Pictures button in the...
Read more >
The Picture element - HTML: HyperText Markup Language
The selected image is then presented in the space occupied by the <img> element.
Read more >
HTML5 Picture element does not seem to be supported by ...
commenting out the img fallback tag and it doesn't show anything. I'm running Chrome 52 which should support picture element. But it seems...
Read more >
Fit All Elements on Figure | Matplotlib graph doesn't fit on figure
In this video we go over how to fit all text and graph elements onto a figure. On occasion when a figure is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found