c3js / c3js/c3

Inconsistency in bar colors and legends after update

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

Hi,
I tried to update config of my chart which was
data.groups, data.columns, axis.x.categories which changes with every request. As soon as I update the chart I faced 2 issues
1. Inconsistency in colors between bar and legends.
2. Bar height is less although having correct data.

Images [before](https://18035110044553044332.googlegroups.com/attach/74a5837f1ea86/color-issue-1.jpeg?part=0.1&view=1&vt=ANaJVrGhWmIFKbJQ9pWksiIbV0vLH2nyuNY4V1Uz3b_WgY-y40TLvwV7wFV8N1fvktMBMgaHo45dbpQLET8xddFM9Sp2g7TdjTWuZUx7r3zs2aqeWJQ2mXg) and [after](https://lh3.googleusercontent.com/-dWG99GkUlAc/WBsGoUKJPuI/AAAAAAAAAto/gREhpOpukfkS-17RqfrHJXZZ5rbA6ib6QCL0B/h527/2016-11-03.png) refreshing are provided in the link.

The above issue is also posted on stack overflow where you can have a look on [code snippet](http://stackoverflow.com/questions/40263555/inconsistency-in-default-colors-of-c3-js-charts)

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.