This repository was archived by the owner on Jul 19, 2019. It is now read-only.

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