CPBarPlot 宽度/间距

发布于 2024-10-05 17:19:44 字数 220 浏览 0 评论 0原文

我正在使用 (CPBarPlot *)barPlot.barWidth 修改图表中条形的宽度,但条形之间的间距不会改变,并且它们现在相互重叠。 barPlot.barOffset 对于初始偏移量非常有用,但我无法弄清楚如何更改后续条形之间的间距。似乎我必须更改轴上间隔间距的某些内容,但我在 CPBarPlot 中没有看到任何与间隔间距相关的内容。有人知道如何实现这一点吗?

I am modifying the width of bars in a graph by using (CPBarPlot *)barPlot.barWidth, but the spacing between bars does not change and they now overlap each other. barPlot.barOffset works great for the initial offset, but I haven't been able to figure out how to change the spacing between subsequent bars. It seems like I have to change something with the spacing of intervals on the axis, but I don't see anything related to interval spacing in CPBarPlot. Anyone know how this can be accomplished?

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

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

发布评论

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

评论(1

甜`诱少女 2024-10-12 17:19:44

这是一篇可能有助于解决此问题的帖子:http://mela.ertale.com/blog /?p=193

祝你好运!

Here's a post that might help out with this issue: http://mela.ertale.com/blog/?p=193

Good luck!

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