c3js / c3js/c3

innerRadius has Nan value for gauge type

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

Description

* **C3 version**: 0.7.1
* **D3 version**: 5.8.0
* **Browser**: Google Chrome
* **OS**: macOS 10.14.5

Error: attribute dx: Expected length, "NaNpx".
Replication:
- Happens every time lost focus from/to browser tab.

Investigation:
- w = config.gauge_width is has assigned value 10
- $$.innerRadiusRatio is -Infinity
- $$.innerRadius is NaN

Quick Fix in line 5804:
$$.innerRadius = $$.innerRadius || 0;

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.