c3js / c3js/c3

Not possible to update category axis completely using load() if number of new categories > number of categories used when generating the chart

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

Description

**Version**: 0.4.11
**Browser**: Chrome Version 50.0.2661.94 (64-bit)

Let **N** be number of categories used when generating a chart with a category axis. Let **n** be the new number of categories you want to use when updating the chart with new data, using _load()_.

If **N >= n**, everything works correctly
If **N < n**, only the first **N** categories will be updated. The rest of the categories are not shown.

Here's a fiddle demonstrating the problem: https://jsfiddle.net/e50czn7r/2/

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.