-1
我工作的項目,需要一個折線圖,我選擇了谷歌線圖,因爲這是很容易得到快速的使用,但我有問題,在谷歌定製一些功能線圖表有一種方法可以自定義谷歌圖表像這個圖像?我試過並使用旋轉,但我沒有得到我的結果!
自定義谷歌路線圖
這裏是谷歌線圖的示例代碼
function drawChart() {
var data = google.visualization.arrayToDataTable([
['X', 'Y'],
[1, 100], // keep linked points adjacent
[1, 200],
[null, null], // insert blank row in between
[2, 150],
[2, 275],
[null, null],
[3, 75],
[3, 200],
[null, null],
[4, 100],
[4, 300]
]);
var chart = new google.visualization.LineChart(document.querySelector('#chart_div'));
chart.draw(data, {
height: 400,
width: 600,
pointSize: 20,
pointShape: 'triangle', rotation: 180
});
}
google.load('visualization', '1', {packages:['corechart'], callback: drawChart});
Pr確定你不能,只有類似的定製改變了點的形狀,但不支持字符:https://developers.google.com/chart/interactive/docs/points – juvian 2014-09-01 20:58:36
你能舉一個你會做什麼的例子嗎?喜歡實現? – asgallant 2014-09-05 02:30:45
@asgallant在這裏我添加一個圖像,顯示我想要的! – 2014-09-06 21:59:36