c3js / c3js/c3

x grid lines showing every other tick

Open
#396 0 comments 0 reactions 0 assignees View on GitHub
C-feature-request
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Here is my code that I am using to get the chart.

```
var chart = c3.generate({
bindto: '#chart',
size: {
height: 500,
width: 1100,
},
data: {
x: 'Company',
columns: data,
type: 'scatter',
},
grid: {
x: {
show: true
}
},
axis: {
x: {
type: 'categories',
tick: {
rotate: 75,
culling: {
max: 1
}
},
height: 200
},
y: {
tick: {
format: d3.format("$,")
}
}
}
});
```

Here is an image of the chart
![screenshot from 2014-06-25 14 50 35](https://cloud.githubusercontent.com/assets/7013041/3392312/042df28c-fcb3-11e3-9046-0dca2852ba15.png)

There are two issues. One is that I want the x ticks to line up with the lines and not be in between the lines like it is in the picture above. This way the x line would go through the dots and not beside it.

I just want the lines to go through the dots, please let me know how this can be done.

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.