Google 图表 - 当 Y 范围更改时,图表无法正确缩放
我使用一个简单的谷歌图表来描绘基准:
由于大多数数据位于 50 到 100 之间,我尝试将范围缩小一点,但这会导致错误图形。
红线的第一个值在第一个图表上从 72 开始,但在第二个图表上从 87 开始。 HTML 代码如下所示:
<img src="http://chart.apis.google.com/chart?chxr=0,50,100|1,0,50&chxt=y,x&chs=900x300&cht=ls&chco=DA3B15,3072F3&chd=s:stt3rp3ts7rp2ut7uz7tt5rr5rw5rs2qr2qr2tq5rr3qp3rr2q,uqq2sp0nqnzoop3qq2tt4tr2sr2rw1rq2rr2qs3pozpoo4rp2p&chdl=With+lock|Without+lock&chg=50,20&chls=2|2&chtt=FluorineFx+-+FactoryInstance+with%2Fwithout+lock&chts=676767,13" width="1000" height="300" alt="FluorineFx - FactoryInstance with/without lock" />
有没有人有解决方案可以帮助正确缩放图形?
I'm using a simple Google chart to picture a benchmark:
Since most data is located between 50 and 100 I tried to make the range a bit smaller but this results in an incorrect graph.
First value of the red line starts at 72 on first graph but at 87 on the second one. The HTML code looks like the following:
<img src="http://chart.apis.google.com/chart?chxr=0,50,100|1,0,50&chxt=y,x&chs=900x300&cht=ls&chco=DA3B15,3072F3&chd=s:stt3rp3ts7rp2ut7uz7tt5rr5rw5rs2qr2qr2tq5rr3qp3rr2q,uqq2sp0nqnzoop3qq2tt4tr2sr2rw1rq2rr2qs3pozpoo4rp2p&chdl=With+lock|Without+lock&chg=50,20&chls=2|2&chtt=FluorineFx+-+FactoryInstance+with%2Fwithout+lock&chts=676767,13" width="1000" height="300" alt="FluorineFx - FactoryInstance with/without lock" />
Has anyone a solution that helps scaling the graph correctly?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了使其工作,我必须将输入数据更改为纯数据格式:
定义轴范围所需的范围:
指定 char 自定义缩放值:
其结果是:
To make it work I had to change the input data to plain data format to:
Define the required range for the axis ranges:
Specify the char custom scaling value:
Which results in: