2 Y-axis graph want to display..

2,152 views
Skip to first unread message

Harshad Patel

unread,
Apr 7, 2012, 6:19:48 AM4/7/12
to google-visua...@googlegroups.com
Hi all,

I am new in google charts. I can't found 2 Y-axis graph. So plese help me if any body have a idea or links for examples please send me asap.

thanks.

Jay

unread,
Apr 7, 2012, 6:47:49 PM4/7/12
to google-visua...@googlegroups.com
Here we go..A slightly modified version @ http://code.google.com/apis/ajax/playground/#combo_chart

function 
drawVisualization({
  // Some raw data (not necessarily accurate)
  var rowData [['Month''Bolivia''Ecuador''Madagascar''Papua  Guinea',
                  'Rwanda''Average'],
                 ['2004/05'165938522998450614.6],
                 ['2005/06'13511205991268288682],
                 ['2006/07'1571167587807397623],
                 ['2007/08'1391110615968215609.4],
                 ['2008/09'1366916291026366569.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',
    width600,
    height400,
    vAxes[{0:{title"Cups"}},{1:{title"Average"}}],
    hAxis{title"Month"},
    seriesType"bars",
            series{5{type"line",targetAxisIndex:1}}
  });

asgallant

unread,
Apr 9, 2012, 10:59:31 AM4/9/12
to google-visua...@googlegroups.com
Here's another example: http://jsfiddle.net/gS2FV/ 
Reply all
Reply to author
Forward
0 new messages