-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Origin is not correctly positioned #521
Labels
Comments
By setting axis padding and chart range, you achieve this. 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'
}
},
axis: {
y: {
padding: {bottom: 0},
min: 0
},
x: {
padding: {left: 0},
min: 0
}
}
}); JS Fiddle: http://jsfiddle.net/santazhang/gswhaLu0/1/ |
Thanks, that partially solves the problem, but...
|
Hi,
|
Please let me close. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While viewing http://c3js.org/ and http://c3js.org/gettingstarted.html I've noticed that the axis origins (i.e. zero points) are incorrectly positioned - they should surely be at the actual crossing of the axes by default, i.e. unless otherwise specified?
The text was updated successfully, but these errors were encountered: