谷歌图表问题让我抓狂

发布于 2024-09-10 21:45:05 字数 596 浏览 2 评论 0原文

我尝试通过以下网址生成图表:

http://chart.apis.google.com/chart?chxl=0:|周一|周二|周三|周四|周五|周六|周日&chxt=x&chbh=a,6,10& ;chs=320x225&cht=bvg&chco=A2C180&chds=0,95&chd=t:0,0,300,500,0,0,0&chtt=Test

除周三和周三外,所有值均为 0周四,他们分别达到 300 和 500。然而,图表中周三和周四的条形长度相同,尽管周三代表 300,周四代表 500。

我已经多次检查了 url 格式,没有发现任何问题。我做错了什么还是这是谷歌图表的错误?

I'm trying to generate a chart via the following url:

http://chart.apis.google.com/chart?chxl=0:|Mon|Tue|Wed|Thu|Fri|Sat|Sun&chxt=x&chbh=a,6,10&chs=320x225&cht=bvg&chco=A2C180&chds=0,95&chd=t:0,0,300,500,0,0,0&chtt=Test

The values are 0 for everything except for Wed and Thu when they are 300 and 500 each. However, the bars in the chart are identically long for wed and thur although wed is representing 300 and thu is representing 500.

I've checked the url format many times and can't find any problem with it. Am I doing something wrong or is this a bug with google charts?

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

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

发布评论

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

评论(2

ぃ双果 2024-09-17 21:45:05

我想通了。

chds 参数必须包含与所有其他值进行比较的数据集的最高值,我已复制 &粘贴我的网址并将“95”作为 chds,这就是为什么 300 和 500 显示相同的原因,更改它解决了问题。

I figured it out.

The chds argument must contain the highest value of the dataset against which all other values are compared, I had copied & pasted my url and had '95' as the chds which is why both 300 and 500 showed equally, changing it fixed the problem.

蹲墙角沉默 2024-09-17 21:45:05

可能是规模问题;您可以在垂直条上打印值,例如每 10 个吗?

It might be a scale problem ; can you print values on the vertical bar, every 10 for example ?

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