How to remove padding in c3.js?

馋奶兔 提交于 2019-12-11 12:13:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!