in project need show graph on particular place, used google bar charts comparison, graph appears on horizontally, need graph in vertically, tried morning on wards no luck, please help. in advance. below code
<script type="text/javascript"> google.charts.setonloadcallback(drawchart); imagepath_comparison=""; function drawchart() { var data = google.visualization.arraytodatatable([<?=$data;?>]); var options = { title: 'graph analysis', vaxis: {title: "subjects"}, haxis: { title: "marks" } }; var chart3 = new google.visualization.barchart (document.getelementbyid("columnchart_material")); google.visualization.events.addlistener(chart3, 'ready', function () { imagepath_comparison=chart3.getimageuri(); drawchart1(); }); chart3.draw(data, options); } </script>
it simple thing need change displaying results,i used columnchart in place of barchart @ time problem solved.
my code after changing is
<script type="text/javascript"> google.charts.setonloadcallback(drawchart); imagepath_comparison=""; function drawchart() { var data = google.visualization.arraytodatatable([<?=$data;?>]); var options = { title: 'graph analysis', vaxis: {title: "subjects"}, haxis: { title: "marks" } }; var chart3 = new google.visualization.barchart (document.getelementbyid("columnchart_material")); google.visualization.events.addlistener(chart3, 'ready', function () { imagepath_comparison=chart3.getimageuri(); drawchart1(); }); chart3.draw(data, options); } </script>
Comments
Post a Comment