Quick question, Up to about a week or so ago, I was able to use the google chart visualization package 1.1 to display two charts on my web page. Now I am only able to select one of the two charts at a time - and the selection is random. I don't remember changing anything and I am using google's out of the box examples nothing really custom. Did google Visualization API change? This code below worked up to about a week ago. Now only one of these charts will display at a time. I would like both to display.
<head> <script type="text/javascript" src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1.1','packages':['bar']}]}"/> </head> <body> <div class="container-fluid" style="width:100%;height:380px;background-color:#CAD6E0"> <div id="candidate_count" style="width:50%;padding:20px;float:left;margin-top:30px"></div> <div id="avg_duration" style="width:50%;padding:20px;float:left;margin-top:30px"></div> </div> </body> <script> google.setOnLoadCallback(drawChart); function drawChart() { var dataHires = google.visualization.arrayToDataTable([ ['2015', 'Hires'], ['January', 30], ['February', 22], ['March', 45], ['April', 29], ['May', 18], ['June', 33], ['July', 30], ['August', 44], ['September', 18], ['October', 22], ['November', 14], ['December', 10] ]); var dataDuration = google.visualization.arrayToDataTable([ ['2015', 'Days'], ['January', 12], ['February', 11], ['March', 16], ['April', 13], ['May', 14], ['June', 11], ['July', 10], ['August', 13], ['September', 14], ['October', 15], ['November', 14], ['December', 13] ]); var optionsHires = { chart: { title: 'Hires This Year (By Month)', subtitle: '' }, width: 500, bars: 'vertical', vAxis: {format: 'decimal'}, height: 250, colors: ['#2c94dc'] }; var optionsDuration = { chart: { title: 'Average Duration This Year (By Month)', subtitle: '' }, width: 500, bars: 'vertical', vAxis: {format: 'decimal'}, height: 250, colors: ['#00a08c'] }; var chartHires = new google.charts.Bar(document.getElementById('candidate_count')); chartHires.draw(dataHires, google.charts.Bar.convertOptions(optionsHires)); var chartDuration = new google.charts.Bar(document.getElementById('avg_duration')); chartDuration.draw(dataDuration, google.charts.Bar.convertOptions(optionsDuration)); } </script> -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/6586d20f-d49a-4851-b7d6-09c4b1948b08%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
