subplot causes x-axis tick labels to be out of bounds
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.4k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
After adding a subplot, then changing the extent, it is possible to make the labels of the x-axis ticks go off to the side on the left or right. You can see this while using the default subplot at http://c3js.org/samples/options_subchart.html.

You can make it more dramatic by adding some padding to the left of the chart. e.g.
```
var chart = c3.generate({
data: {
columns: [
['sample', 30, 200, 100, 400, 150, 250]
]
},
padding: {
right: 200
},
subchart: {
show: true
}
});
```
Shown in this screenshot where you can see the label '2' way off to the right of the plot, into the padding of the total chart area.

Is there any way to fix this so that the labels never go past the actual data?
Contributor guide
Assessment
This issue has not been assessed yet.