c3js / c3js/c3

Some grid lines are not displayed when using chart.xgrids.remove() and then chart.xgrids([{...},{...}])

Open
#1,459 3 comments 2 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

Hi, I'm trying to get around issue #1458 by performing a chart.xgrids.remove() before adding grid lines with chart.xgrids([{...},{...}]). However, when I tried this I noticed that some of the grid lines were not rendered as expected, or at all.

https://jsfiddle.net/ovn4xuga/1/

I have inlined my expectations into the code so it's easy to see what I think should be happening and what is actually happening. I could very well be mis-understanding how to use the xgrids.\* methods.

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.