Expected Behavior
Expected behavior as it was in Chart.js 2.8.x.
draw
method in my applyCustomRenderer should get correct data in this._model.x
and this._model.width
.
See values in the console in following codepen, there are correct float values.
https://codepen.io/Misticek/pen/jOOJNgv
Current Behavior
Chart.js 2.9.x
draw
method getting NaN
values in this._model.x
and this._model.width
instead of correctly calculated values as it is in 2.8.0.
https://codepen.io/Misticek/pen/jOOJNvx
Steps to Reproduce (for bugs)
Codepen links above, see console.log for both code pens.
Context
Trying to render rounded corner bars like this (version 2.8.0):
With version 2.9.x I am unable to render these rounded bars because of NaN values in this._model.x
and this._model.width
. No bars are being rendered at all.
Environment
- Chart.js version: 2.9.x
- Browser name and version: All browsers
This is a very nice looking chart!
This seems like a duplicate of #6636. Please see there for details on how to solve
Also make sure you’ve read the documentation on this page: https://www.chartjs.org/docs/latest/developers/charts.html#bar-controller