Skip to content Skip to sidebar Skip to footer

How To Remove Padding In C3.js?

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?

Solution 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).

Post a Comment for "How To Remove Padding In C3.js?"