Hi,

I am trying to create Stacked Bar chart which will have 2 Y axis. Is
it supported with Google Chart API.

I am attaching sample code where chart is showing wired result if I un-
comment "'isStacked': true" code.
It will be great if you can help on this or suggest anything here.

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 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