Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECharts: Statistics Graph has no Legend #23875

Open
3 of 4 tasks
karwosts opened this issue Jan 24, 2025 · 0 comments
Open
3 of 4 tasks

ECharts: Statistics Graph has no Legend #23875

karwosts opened this issue Jan 24, 2025 · 0 comments
Assignees
Milestone

Comments

@karwosts
Copy link
Contributor

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

Statistics graph card is completely missing the legend. I see this message always repeated in the console anytime I load a statistics graph card, perhaps it is related:

ha-chart-base.ts:183 Carbon dioxide series not exists. Legend data should be same with series name or data name.
ha-chart-base.ts:183 Carbon monoxide series not exists. Legend data should be same with series name or data name.

Describe the behavior you expected

Legend

Steps to reproduce the issue

  1. Have a statistics graph card
  2. ???
  3. No legend
    ...

What version of Home Assistant Core has the issue?

2025.2.dev

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue?

No response

Which operating system are you using to run this browser?

No response

State of relevant entities

Problem-relevant frontend configuration

chart_type: bar
period: hour
type: statistics-graph
entities:
  - sensor.carbon_dioxide
  - sensor.carbon_monoxide
stat_types:
  - mean
  - min
  - max

Javascript errors shown in your browser console/inspector

Carbon dioxide series not exists. Legend data should be same with series name or data name.
eval @ LegendView.js:221
each @ util.js:205
LegendView.renderInner @ LegendView.js:139
LegendView.render @ LegendView.js:105
eval @ echarts.js:1581
each @ util.js:205
renderComponents @ echarts.js:1578
render @ echarts.js:1565
update @ echarts.js:1197
ECharts.setOption @ echarts.js:408
handleKeyUp @ ha-chart-base.ts:88

Additional information

No response

@silamon silamon added this to the 2025.2 milestone Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants