c3js / c3js/c3

`chart.load` should return the assigned color.

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

It is complex, but not too hard, to predict which color is used when loading data in to a chart. This is especially true when lines can be removed, and colors re-used.

If elements in the page are color-coded, this involves keeping an external available-color registry.

This would be made easier if the `load` function simply returned the color, and any other relevant values, rather the the current result of `undefined`.

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.