谷歌图表 API |轴数间距
这是我的图表:
您会注意到 0 位于中间(这是正确的),并且它的范围是从 -20 到 20(这也是正确的)。
我需要数字间距以 5 为增量而不是 10。它需要读取 -20 -15 -10 -5 0 5 10 15 20
有谁知道我怎样才能做到这一点?我尝试弄乱 CHXR 属性,它正在调整数字间距,但将 0 移离中间并搞砸了一切。
This is my chart:
You'll notice how 0 is in the middle (which is correct) and that it ranges from -20 to 20 (which is also correct).
I need the number spacing to be in increments of 5 instead of 10. It needs to read
-20 -15 -10 -5 0 5 10 15 20
Does anyone know how I can accomplish this? I tried messing with CHXR property and it was adjusting the number spacing but moving the 0 away from the middle and screwing everything up.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样?
<一href="http://chart.apis.google.com/chart?chxr=0,-20,20,5&chxs=0,676767,11.5,0.5,l,676767&chxt=y&chbh=23, 1&chs=300x150&a mp;cht=bvg&chco=C35A21,99877D&chds=-20,20,-20,20&chd=t: -12.8,11,-10.4,-0.7,-0.3|-11.7,13.6,-6.9,0.4,-1.2&chg=20,-1,0,0" rel="nofollow">http://chart.apis.google.com/chart?chxr=0,-20,20,5&chxs=0,676767,11.5,0.5,l,676767&chxt=y&chbh =23,1&chs=300x15 0&cht=bvg&chco=C35A21,99877D&chds=-20,20,-20,20&chd=t: -12.8,11,-10.4,-0.7,-0.3|-11.7,13.6,-6.9,0.4,-1.2&chg=20,-1,0,0
http://code.google.com/apis/chart/docs /gallery/bar_charts.html#axis_range
Like this?
http://chart.apis.google.com/chart?chxr=0,-20,20,5&chxs=0,676767,11.5,0.5,l,676767&chxt=y&chbh=23,1&chs=300x150&cht=bvg&chco=C35A21,99877D&chds=-20,20,-20,20&chd=t:-12.8,11,-10.4,-0.7,-0.3|-11.7,13.6,-6.9,0.4,-1.2&chg=20,-1,0,0
http://code.google.com/apis/chart/docs/gallery/bar_charts.html#axis_range