我有一个图表,它显示一个列系列和两个区域系列(堆叠)。我希望这些区域显示在列后面。这可能吗?
var data = google.visualization.arrayToDataTable([
['Day', 'Actual', 'Base','Uplift'],
['2013-05-01',140,100,25],
['2013-05-07',75,80,22],
['2013-05-14',130,105,10],
['2013-05-21',110,75,18],
['2013-05-28',205,140,25]
]);
// Create and draw the visualization.
var ac = new google.visualization.ComboChart(document.getElementById('chart'));
ac.draw(data, {
width: 600,
fontSize:10,
height: 400,
colors:['rgb(146,208,80)','rgb(0,112,192)','rgb(184,204,228)'],
vAxis: { minValue: 0},
hAxis: {slantedTextAngle: 45},
seriesType: "bars",
isStacked:true,
series: {0:{type:"bars"},1: {type: "area", areaOpacity:.7}, 2: {type: "area", areaOpactiy:1}}
});
}
在这里看小提琴 - http://jsfiddle.net/MeS2N/