c3js / c3js/c3

After render show or hide axis x not working

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

``` javascript
var chart = c3.generate({
data: {
columns: [
['data1', 30, 200, 100, 400, 150, 250],
['data2', 50, 20, 10, 40, 15, 25]
],
axes: {
data1: 'y',
data2: 'y2'
}
},
grid: {
x: {
show: true
}
}
});

chart.internal.config.axis_x_show=false;

chart.flush();
```

Contributor guide

Open the contributing guide

Research direction

Start with the c3.generate configuration and the chart.flush call in the reproduction, then trace how axis_x_show is read after rendering. Reproduce the example and verify whether changing that setting updates the x-axis visibility. Done means post-render show and hide changes work consistently, with regression coverage for the demonstrated sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.