我已经生成图表形式谷歌电子表格。以我为横轴报告我有值:1 ,2 ,3 ,4 ,5 ,10 ,20 ,30 ,40 ,50 ,100 ,200 ,300 ,400 ,500 ,600 ,700 ,800 ,900 ,1000。 图表解释它们作为一个标签,而不是一个数字:谷歌图表中的轴比例(来自谷歌电子表格)
所以1和4之间的距离是一样的20和50。如何改变它之间? (也许我必须转换输入数据 - 如何?)
Here is my spreadsheet与输入数据,查询和图表。
我要将它与这些脚本的网页:
<script type="text/javascript" src="//ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js">
{"dataSourceUrl":"//spreadsheets.google.com/spreadsheet/tq?key=0AtdHElsKyNw9dERVZ1lZRVNmYmRqSlVVbWszd3BVdGc&transpose=0&headers=1&range=F1%3AI21&gid=0&pub=1",
"options":{
"reverseCategories":false,"titleX":"thousand objects","backgroundColor":"#FFFFFF","pointSize":0,
"width":510,
"vAxis":{"format":"#0.##########"},
"smoothLine":true,"lineWidth":2,"logScale":false,"hasLabelsColumn":true,
"hAxis":{"maxAlternation":1},
"vAxes":[{"min":null,"title":"ms","max":null,"maxValue":null}],
"title":"Performance of exposing previous value in AspectJ set-pointcut",
"height":400,"interpolateNulls":false,"legend":"bottom","reverseAxis":false
},
"state":{},
"chartType":"LineChart",
"chartName":"Performance test"
} </script>
1是。散布情节是要走的路。 – MetaEd
这个答案有任何更新吗?新的Google图表API是否可能具有特定的x值(不仅均匀间隔) –