HA 20212.7 No more Chart....
See original GitHub issueas HA changed its Charts, this is now no longer functional and showing the Chart card without Chart
error in inspector:
Cannot read property 'forEach' of undefined
in:
var meta = chartInstance.controller.getDatasetMeta(2);
meta.data.forEach(function (bar, index) {
var data = (Math.round((chartInstance.data.datasets[2].data[index]) * 10) / 10).toFixed(1);
ctx.fillText(data, bar._model.x, bar._model.y - 5);
});
called by:
<ha-chart-base hass="[[_hass]]" data="[[ChartData]]"></ha-chart-base>
resource file in HA code: https://github.com/home-assistant/frontend/blob/dev/src/components/chart/ha-chart-base.ts
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:14 (4 by maintainers)
Top Results From Across the Web
HA 20212.7 No more Chart.... · Issue #59 - GitHub
as HA changed its Charts, this is now no longer functional and showing the Chart card without Chart error in inspector: Cannot read...
Read more >Lovelace: Weather card with chart - #186 by Peet
https://github.com/Yevgenium/lovelace-weather-card-chart Custom weather card for Lovelace: Animated chart with ... HA 20212.7 No more Chart.
Read more >Mariah Carey's 'Christmas' Continues Atop Global Charts
Mariah Carey's “All I Want for Christmas Is You” holds at No. 1 on both the Billboard Global 200 and Billboard Global Excl....
Read more >2022 Music Year in Review - Official Charts
The six-odd year gaps between studio albums by Red Hot Chili Peppers, Jamie T, A-Ha and Beyoncé almost seem like nothing by comparison, ......
Read more >[Weekly KPOP Chart] 4th Week of December 2021
The Charts ; 13 · 14 · 15 ; Killing Me · Sweet Travel · No More X ; CHUNG HA · VICTON...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
See https://github.com/koying/lovelace-weather-card-chart/tree/chartjs3 for a working fix Please test, probably still some issues to be fixed
PR created: https://github.com/Yevgenium/lovelace-weather-card-chart/pull/60