0
這裏是original chart。Google Charts - 如何創建帶有垂直文本的Y軸標籤?
添加Y軸標籤時,它爲looks like this。
如何使Y軸標籤垂直讀取?以我想你想要什麼http://code.google.com/apis/ajax/playground/?type=visualization#combo_chart
下面是具有類似一臉組合圖表:
這裏是original chart。Google Charts - 如何創建帶有垂直文本的Y軸標籤?
添加Y軸標籤時,它爲looks like this。
如何使Y軸標籤垂直讀取?以我想你想要什麼http://code.google.com/apis/ajax/playground/?type=visualization#combo_chart
下面是具有類似一臉組合圖表:
你可以玩它在這裏。
function drawVisualization() {
// Some raw data (not necessarily accurate)
var rowData = [['Month', 'Bolivia', 'Ecuador', 'Madagascar', 'Papua Guinea',
'Rwanda', 'Average'],
['2004/05', 165, 938, 522, 998, 450, 614.6],
['2005/06', 135, 1120, 599, 1268, 288, 682],
['2006/07', 157, 1167, 587, 807, 397, 623],
['2007/08', 139, 1110, 615, 968, 215, 609.4],
['2008/09', 136, 691, 629, 1026, 366, 569.6]];
// Create and populate the data table.
var data = google.visualization.arrayToDataTable(rowData);
// Create and draw the visualization.
var ac = new google.visualization.ComboChart(document.getElementById('visualization'));
ac.draw(data, {
title : 'Monthly Coffee Production by Country',
width: 600,
height: 400,
vAxis: {title: "# of discussions per individual"},
hAxis: {title: "Month"},
seriesType: "bars",
series: {5: {type: "line"}}
});
}
感謝您的示例,但我需要將圖表繪製爲圖片並鏈接到chart.api.google.com。生成的圖像附加到電子郵件。在你的例子中,圖表不是圖像。 – nomad 2012-02-20 16:48:14