-
Notifications
You must be signed in to change notification settings - Fork 80
Bump to ChartJs3 (mandatory for 2021.7). Fixes #59 #60
Conversation
great work, looking good! thank you very much! allow me a few tiny remarks: hence we can take out the const chartType, which is what I have done locally. Works perfectly. because of that, we can should also take it out off the Maybe personal preference, so no big deal. lastly, Ive checked and the references to the xAxisID in the chartData do nothing? took them out, and all remains the same.... |
you might want to also ditch the hours/minutes in the tooltips? |
have you seen my post in the community, especially on the language setting? I've adapted to
or
to make it work again nicely. Not sure of we should also do that in the drawChart() because all settings are already localized now. maybe that can even be taken out of there? I guess we can, because Ive seen no issues doing so ;-) lastly:
can be taken out of the tooltips |
There is no locale in the config, is it? |
Please let me know when it is ready to be merged. |
yes there is, how else would these locales be used in the card. I can't remember when this was added, but I have had
since forever?
No I dont think it is |
glad you're back! |
The card currently uses the user language, and there is no "locale" here https://github.com/Yevgenium/lovelace-weather-card-chart/blob/master/weather-card-chart.js#L234 |
As said, it never worked like that in my setup, because it nowhere imports any of those languages? Hence the addition of my locale setting. Ive posted all here https://community.home-assistant.io/t/lovelace-weather-card-with-chart/88816/185?u=mariusthvdb including a link to my gist |
I have to check that, don't understand what's happening .... Bye, since you're at it, check the top left icon position. I made a Pr for that ages ago, so maybe a good time now to take it in 1 go |
Still don't really understand how it worked before, but you made me remind why this was used: to be able to override user language. It checks if a locale is set in config, if not it selects the user language. Defaulting to English. |
yes, I tend to agree with that, looks nice at first glance but has some discussion points... maybe we should keep this issue to its topic, and first merge @koying 's PR, now that it's up to speed and has fixed all we needed to fix? feel the new design should be in its own branch. |
Thanks! |
ChartJs was bumped to 3.X in HA 2021.7, leading to the need of numerous changes for the chart to display.
Not retro-compatible at all, so it might be desirable to create a branch with the < 2021.7 version beforehand.