samedi 24 août 2019

I want to view two google charts in same page

I want to display two google real time charts in my blade. But I am unable to solve the errors.

<script type="text/javascript">
var analytics = <?php echo $School; ?>

google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart1);
function drawChart1()
{
var data = google.visualization.arrayToDataTable(analytics);
var options = {
 title : 'Percentage of Schools from various States'
};
var chart = new 
google.visualization.PieChart(document.getElementById('pie_chart1'));
chart.draw(data, options);
}
</script>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire