Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

TypeError: Cannot read property 'offsetWidth' of undefined #229

Open
kgaurav0212 opened this issue May 19, 2019 · 0 comments
Open

TypeError: Cannot read property 'offsetWidth' of undefined #229

kgaurav0212 opened this issue May 19, 2019 · 0 comments

Comments

@kgaurav0212
Copy link

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 | };

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

1 participant