Flot - 如何使我的条形更宽?

发布于 01-05 19:10 字数 147 浏览 2 评论 0原文

如何使条形图中的条形更宽?我尝试了各种方法,例如设置 X 轴上的刻度数,但似乎没有任何效果符合我的预期。

现在,酒吧真的很小。

在此处输入图像描述

How can I make my bars in my bar diagram wider? I've tried all kinds of things such as setting the amount of ticks in the X axis, however nothing appears to be working as I expect.

Right now, the bars are really small.

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凡间太子2025-01-12 19:10:23

请参阅Flot API

Customizing the data series
===========================

series: {
  lines, points, bars: {
    show: boolean
    lineWidth: number
    fill: boolean or number
    fillColor: null or color/gradient
  }

  points: {
    radius: number
    symbol: "circle" or function
  }

  bars: {
    barWidth: number
    align: "left" or "center"
    horizontal: boolean
  }

因此,您应该能够设置barWidth< /code> 就可以开始了。

See Flot API:

Customizing the data series
===========================

series: {
  lines, points, bars: {
    show: boolean
    lineWidth: number
    fill: boolean or number
    fillColor: null or color/gradient
  }

  points: {
    radius: number
    symbol: "circle" or function
  }

  bars: {
    barWidth: number
    align: "left" or "center"
    horizontal: boolean
  }

So, you should be able to set barWidth and be good to go.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文