c3js / c3js/c3

Chart Bar incorrectly appears in full length (100% Value) upon hiding more then one keys

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

Description

Trying this code:

```
$window.c3.generate({
bindto: '#' + scope.bindId,
data: {
json: newData,
axes: {
budget: 'y2'
},
keys: {
x: 'date',
value: ['impressions', 'clicks', 'videoCompletions', 'visits', 'conversions', 'budget']
},
hide: ['videoCompletions', 'clicks', 'visits', 'conversions'],

```

This causes bars hidden to be incorrectly displayed as 100% values on Bar Graph.
Tried onrendered, chart.flush(), chart.resize(), version 0.4.18 & 0.4.14 but issue persists

Current Value:
![image](https://user-images.githubusercontent.com/36474801/36201251-65c80798-11a5-11e8-9037-fb29678e9054.png)

Expected Value:
![image](https://user-images.githubusercontent.com/36474801/36201194-2ce1fa24-11a5-11e8-873b-1012f710fa21.png)

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.