Hi,

I am trying to create a Stacked Bar chart with multiple Y axis. Is it 
supported with Google Chart. 
My code sample is attached below, here If I start using "isStacked : true" 
property then this chart is only going to show one value in Stacked chart.

Thanks in Advance... 


var data = new google.visualization.DataTable();
data.addColumn('string', 'x');
data.addColumn('number', 'Consumption');
data.addColumn('number', 'Billing Amount');
data.addRow(["This Month", 300, 52]);
data.addRow(["Last month", 250, 45]);

 var options = {
vAxes: {0: {title : 'In Unit'},
1: {title : 'Amount in USD'}},
        hAxis: {title: "Month"},
seriesType: "bars",
// 'isStacked': true,
series: {
0: {targetAxisIndex:0},
1: {targetAxisIndex:1}}
};

var chart = new 
google.visualization.ColumnChart(document.getElementById('chart_div'));
chart.draw(data, options);

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-chart-api/-/tRNw4zl3KQ8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-chart-api?hl=en.

Reply via email to