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

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

@kgaurav0212

Description

@kgaurav0212

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions