c3js / c3js/c3

Cannot read property 'remove' of null

Open
#2,735 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Hi,

i am working on project where i use AngularJs, d3, c3 and c3.angular.js directive.

I created new angularJs directive only for showing bar chart.
When $destroy event is fired i do call destroy() method on created chart-object.

After 10 Sek. error is thrown.

angular.js:13920 TypeError: Cannot read property 'remove' of null
at n.destroy (c3.min.js:2)
at c3-angular.min.js:5
at angular.js:19612
at completeOutstandingRequest (angular.js:5964)
at angular.js:6243

In c3.js its this code what do problems:
**return e.resizeFunction.remove()**

please check "null" before "remove" is called.

tx

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.