Deprecation warnings on all horizontal bar charts with Chart.js 2.9.0
See original GitHub issueExpected Behavior
No deprecation warnings when not using deprecated options.
Current Behavior
Two deprecation warnings for all horizontal bar charts
bar chart: "scales.[x/y]Axes.barPercentage" is deprecated. Please use "dataset.barPercentage" instead
and
bar chart: "scales.[x/y]Axes.categoryPercentage" is deprecated. Please use "dataset.categoryPercentage" instead
Steps to Reproduce (for bugs)
Change type
to horizontalBar
in the default codepen: https://codepen.io/ankane/pen/XWWgKZy
Environment
- Chart.js version: Chart.js 2.9.0
- Browser name and version: Chrome 78
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Bar Chart | Chart.js
Bar Chart. A bar chart provides a way of showing data values represented as vertical bars. It is sometimes used to show trend...
Read more >Chartjs defaults deprecation warning - Stack Overflow
I am setting the following default in Chartjs (v2.9.3) to alter the default look of my bar charts: Chart.defaults.bar.scales.xAxes[0].
Read more >[Solved]-Show data dynamically in line chart - ChartJS-Chart.js
I understand you want to update view with new fresh json data every xx ms ... You can use Chart.js's addData() function with...
Read more >react-chartjs-2 - npm
We recommend using chart.js@^4.0.0 . Then, import and use individual components: import { Doughnut } ...
Read more >Bug #1976449 “Chart.js error - bar graph not displaying”
View the reports page: Admin menu>Reports Expected results: - A horizontal bar graph under the heading 'Most frequently used blocks in ...
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
Still seeing this issue on 2.9.3 for vertical bar charts using the following configuration:
@hevans90 this one helps me: https://stackoverflow.com/a/59732946/7189547