c3js / c3js/c3

Series bar stops stacking after no entry for that series

Open
#2,616 1 comment 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

C3 version: 0.6.14 (also happens with 0.7)
D3 version: v5
Browser: Chrome 74
OS: MacOS

https://jsfiddle.net/dayvidwhy/prq1z0wd/1/

Red series 'o7' stops stacking after there is no value for that date.

If you put in a value for that date it goes back to stacking as intended for the last bar.

https://jsfiddle.net/dayvidwhy/hsp0yx67/1/

Is this the intended behaviour?

Contributor guide

Open the contributing guide

Research direction

Start by running the two linked JSFiddle reproductions in Chrome and compare the series data for the missing date. Trace the stacked-bar rendering path from the reproduction to identify why series 'o7' stops stacking, then confirm that both datasets produce the intended stacking behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
d3, javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.