'minBarLength' of undefined in Angular@9.0.1 with ng2-charts@2.3.2
gentios opened this issue · 1 comments
gentios commented
core.js:6228 ERROR TypeError: Cannot read property 'minBarLength' of undefined
at ChartElement.calculateBarValuePixels (Chart.js:5042)
at ChartElement._updateElementGeometry (chartjs-chart-financial.js:146)
at ChartElement.updateElement (chartjs-chart-financial.js:373)
at ChartElement.update (Chart.js:4895)
at ChartElement._update (Chart.js:3831)
at ChartElement.reset (Chart.js:3733)
at Chart.js:9638
at Object.each (Chart.js:2227)
at Chart.update (Chart.js:9637)
at Chart.construct (Chart.js:9357)
I am trying to implement the following financial chart but without a luck and I keep getting this error.
Stack:
"chart.js": "^2.9.3",
"chartjs-adapter-luxon": "^0.2.0",
"eva-icons": "^1.1.2",
"luxon": "^1.15.1",
"ng2-charts": "^2.3.2",
I created also this stackblitz but somehow has problems compiling: https://stackblitz.com/edit/angular-ivy-gpyjzx
benmccann commented
This project requires Chart.js 3.0