c3js / c3js/c3

hiding series in oninit makes remaining bars 1px wide

Open
#2,160 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

Based on trying to find a workaround for #2158

`oninit` should allow the hiding of an initial set of data series, which it does, but it then reduces the remaining bars to 1px in width.
http://jsfiddle.net/Lbej86Lf/2/

`onrendered` with a flag to run only the first time works as expected
http://jsfiddle.net/Lbej86Lf/3/

C3 version: 0.4.17
D3 version: 3.5.17
Browser: Chrome 60.0.3112.113 (Official Build) (64-bit)
OS: Windows 7 64-Bit

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.