react-chartjs icon indicating copy to clipboard operation
react-chartjs copied to clipboard

TypeError: Cannot read property 'offsetWidth' of undefined

Open kgaurav0212 opened this issue 6 years ago • 0 comments

computeDimension node_modules/chart.js/Chart.js:30 27 | //Variables global to the chart 28 | var computeDimension = function(element,dimension) 29 | {

30 | if (element['offset'+dimension]) 31 | { 32 | return element['offset'+dimension]; 33 | }

TypeError: Cannot read property 'config' of undefined ChartComponent.destroyChart node_modules/react-chartjs-2/es/index.js:265 262 | // tab gets switched to the chart and uses the same data). 263 | this.saveCurrentDatasets(); 264 | var datasets = Object.values(this.datasets);

265 | this.chartInstance.config.data.datasets = datasets; 266 | 267 | this.chartInstance.destroy(); 268 | };

kgaurav0212 avatar May 19 '19 15:05 kgaurav0212