问题
Is there a way to remove the left padding, between the Y-axis and the first value in C3.js? If so, how can I do this?
回答1:
From the docs, it looks like you can add an axis.x.padding setting, like so:
axis: {
x: {
padding: {
left: 0,
right: 0,
}
}
}
Here is a fiddle: http://jsfiddle.net/cnp4de61/ (the padding stuff near the top of the code apparently for the overall chart within the page).
来源:https://stackoverflow.com/questions/32445750/how-to-remove-padding-in-c3-js