I worked it out myself :-) var options = { title : 'March 2014 Helpdesk Tickets', vAxis: {title: "Tickets"}, hAxis: {title: "Day"}, seriesType: "bars", series: {2: {type: "line"}, 3: {type: "line"}, 4: {type: "line"}} }; Cheers John.
On Wednesday, 2 April 2014 12:32:27 UTC+1, John Brines wrote: > Hi guys, > > I have four data series that I want to split in to two bar and two line > chart. My code is below, my question is how do I get the two lines to show, > as it is the now I have three colums and 1 lines. > > Any help much appreciated. > > John > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="content-type" content="text/html; charset=utf-8"/> > <title> > Google Visualization API Sample > </title> > <script type="text/javascript" src=" > https://www.google.com/jsapi"></script> > <script type="text/javascript"> > google.load('visualization', '1', {packages: ['corechart']}); > </script> > <script type="text/javascript"> > function drawVisualization() { > // Some raw data (not necessarily accurate) > var data = google.visualization.arrayToDataTable([ > ['Month', 'Tickets Open', 'Tickets Closed', 'Average Open', > 'Average Closed'], > ['10- Mar', 67, 51, 62, 61,], > ['11- Mar', 66, 65, 62, 61,], > ['12- Mar', 95, 68, 62, 61,], > ['13- Mar', 66, 49, 62, 61,], > ['14- Mar', 57, 43, 62, 61,] > ]); > var options = { > title : 'March 2014 Helpdesk Tickets', > vAxis: {title: "Tickets"}, > hAxis: {title: "Day"}, > seriesType: "bars", > series: {2: {type: "line"}} > }; > var chart = new > google.visualization.ComboChart(document.getElementById('chart_div')); > chart.draw(data, options); > } > google.setOnLoadCallback(drawVisualization); > </script> > </head> > <body> > <div id="chart_div" style="width: 900px; height: 500px;"></div> > </body> > </html> > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com. To post to this group, send email to google-visualization-api@googlegroups.com. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.