如何删除c3.js中的填充? [英] How to remove padding in c3.js?

查看:111
本文介绍了如何删除c3.js中的填充?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以删除Y轴和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?

推荐答案

从文档中看,您似乎可以添加 axis.x.padding 设置,如下所示:

From the docs, it looks like you can add an axis.x.padding setting, like so:

axis: {
  x: {
    padding: {
      left: 0,
      right: 0,
    }
  }
}

这是一个小提琴: http://jsfiddle.net/cnp4de61/(显然是页面中整个图表的代码顶部.

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

这篇关于如何删除c3.js中的填充?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆