Tôi đã tạo bảng tính biểu mẫu google biểu mẫu. Trong báo cáo của tôi cho trục ngang tôi có giá trị: 1 , 2 , 3 , 4 , 5 , 10 , 20 , 30 , 40 , 50 , 100 , 200 , 300 , 400 , 500 , 600 , 700 , 800 , 900 , 1000. Chart giải thích chúng như là một nhãn, không phải là một số:Quy mô trục trong biểu đồ google (từ bảng tính google)
Vì vậy, khoảng cách giữa 1 và 4 là giống như từ 20 đến 50. Làm thế nào để thay đổi nó? (Có lẽ tôi phải chuyển đổi dữ liệu đầu vào - như thế nào?)
Here is my spreadsheet với dữ liệu đầu vào, truy vấn và biểu đồ.
Tôi muốn nhúng nó trong một trang web với kịch bản như:
<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 Yes. Âm mưu phân tán là con đường để đi. – MetaEd
Có bất kỳ cập nhật nào về câu trả lời đó không? Có thể với Google Chart Api mới để có các giá trị x cụ thể (không chỉ khoảng cách đều nhau) –