c3js / c3js/c3

x-grid lines in front of y-grid lines?

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

Description

Is there a way to make the x grid focus lines (the vertical line that shows when you hover over a data point) render in front of the y grid lines (the horizontal lines that are always present)? This is an issue for me because my lines are different colors and the x grid lines are dotted. It looks strange when the dots are in front of the vertical lines.

I know I can do this to control the position of the grid lines relative to the data lines:

```
var chart = c3.generate({
bindto: '#chart',
data: {
...
},
grid: {
lines: {
front: false
}
}
});
```

is there a way to control the grid lines positions relative to each other with out modifying the c3 source?

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.