c3js / c3js/c3

Pie-chart coloring doesn't work with an empty column name and no legends

Open
#1,463 1 comment 0 reactions 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

See http://embed.plnkr.co/i0qinQNyWMGD0rkASicU/preview

With a chart defined as follows, the pie-chart will use the same color for both data entries. If `legend.show` is set to `true`, the coloring works as expected.

```
{
data: {
columns: [
['data', 30],
['', 120], // NOTE: empty name
],
type : 'pie',
},
color: {
pattern: ["blue", "red"]
},
legend: {
show: false
}
}
```

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.