graph - google combo charts with stacked bar and lines -


wondering if can help, trying create google charts using stacked bars , 2 lines.i able create 1 line, not sure how can add line same chart. want show "average2" line chart.

google.setonloadcallback(drawvisualization);    function drawvisualization() {    // raw data (not accurate)    var data = google.visualization.arraytodatatable([      ['month', 'bolivia', 'ecuador',   'average1' , 'average2'],      ['april',  165,      938, 614.6 , 400],      ['may',  135,      1120,  682 , 500],      ['june',  157,      1167,  623, 600],      ['july',  139,      1110,  609.4, 450],      ['august',  136,      691,   569.6 , 700]    ]);      var options = {      title : 'month (q2-q1 2015)',      vaxis: {title: ""},      haxis: {title: ""},        isstacked: true,      seriestype: "bars",      series: {2: {type: "line"}},       };      var chart = new google.visualization.combochart(document.getelementbyid('chart_div'));    chart.draw(data, options);  }
<script type="text/javascript" src="https://www.google.com/jsapi?autoload={'modules':[{'name':'visualization','version':'1.1','packages':['corechart']}]}"></script>         <div id="chart_div" style="width: 900px; height: 500px;"></div>

try:

series: {2: {type: "line"}, 3: {type: "line"}}, 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -