Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

HA 2021.6: maxBarThickness is deprecated #57

Closed
Mariusthvdb opened this issue May 31, 2021 · 5 comments
Closed

HA 2021.6: maxBarThickness is deprecated #57

Mariusthvdb opened this issue May 31, 2021 · 5 comments

Comments

@Mariusthvdb
Copy link

from ha 2021.6 on:

Schermafbeelding 2021-05-31 om 11 32 13

according to Discord #beta this has to do with a bump in chart.js

tried to solve it locally by adding

          {
           maxBarThickness: 15,
          },

under datasets, and this makes the warning disappear. (as does taking out the line completely without replacing it......)
cant say if this is a correct fix, because nothing's happening at all...
please have a look?

@Mariusthvdb Mariusthvdb changed the title maxBarThickness is deprecated HA 2021.6: maxBarThickness is deprecated May 31, 2021
@inthehoose
Copy link

I added barThickness and maxBarThickness attributes here to my local file to get the precipitation bars to appear again:

          {
            label: this.ll('precip'),
            type: 'bar',
            data: precip,
            yAxisID: 'PrecipAxis',
            maxBarThickness: 15,
            barThickness: 12,
          },

@Mariusthvdb
Copy link
Author

can you please post a pic of what it does? I cant see any difference locally.

@inthehoose
Copy link

Clear your browser cache so the updated .js file can be downloaded.

@Mariusthvdb
Copy link
Author

Mariusthvdb commented Jun 12, 2021

I know how to update a custom card..... ;-)

its just that I wonder what the change actually does (I see no difference )

so please show a pic of the card with the fix?

this is what I have:

Schermafbeelding 2021-06-12 om 11 15 38

@Mariusthvdb
Copy link
Author

will close, as the latest edits and now PR #60 has this fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants