c3js / c3js/c3

Uncaught TypeError: Cannot read property 'x' of null

Open
#1,235 6 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

if you call `chart.flow(…)` twice immediately or after a short period of time you get the following error:

> Uncaught TypeError: Cannot read property 'x' of null

It's thrown in `c3.js` at line `6227`:

``` javascript
} else if (flow.orgDataCount === 1 || flowStart.x === flowEnd.x) {
```

because `flowStart` is `null`.

Here's a CodePen illustrating the problem: http://codepen.io/mmiszy/pen/xGPYEj
The exception might occur even if the second call to `chart.flow(…)` happens after 300ms (maybe longer?)

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.