jqplot 图表条之间的宽度
如何修改 jqplot 中条形之间的距离?当元素较少时,它们之间的空间太大。这里有两张图片,一张显示了一些条形,第二张显示了较少的条形。
显示的条形越少,条形之间的差异越大。我希望能够改变这一点而不会使酒吧变得更胖。我喜欢现在的条形图,但我想让条形图和背景网格线之间的网格宽度尺寸更小。
How can I modify the distance between the bars in jqplot. There is too much space between them when there are less elements on it. Here are 2 images, one with some bars showing and the second one with less bars showing.
The less bars that show, the bigger the difference between bars. I want to be able to change this WITHOUT making the bars fatter. I like the bars like they are right now but I want to make the grid width size smaller between the bar and the grid lines in the background.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
将 barPadding 设置为负值
Set the barPadding to a negative value
试试这个
Try this
我认为首先你应该设置 barWidth。
I think first you should set barWidth.