<script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ["Element", "Density", { role: "style" } ], ["Médio", <?php echo $dashboard->getMediaInvestimento(); ?> , "#b87333"], ["Maior", <?php echo $dashboard->getMaiorInvestimento(); ?> , "silver"], ["Menor", <?php echo $dashboard->getMenorInvestimento(); ?> , "gold"], ]); var view = new google.visualization.DataView(data); view.setColumns([0, 1, { calc: "stringify", sourceColumn: 1, type: "string", role: "annotation" }, 2]); var options = { title: "Investimento", width: 600,
}; </script> <div class="container"> <h1>Charts, only!</h1> <div class="row" align="center"> <div class="col-md-5"> <div id="piechart" style="width: 600px; height: 400px;"></div> </div> <div class="col-md-1"></div> <div class="col-md-5"> <div class="well"> <h1>Investimento</h1> <?php echo "<a href=busca.php?search=" . $dashboard->getMaiorInvestimento() . " class='a'>\n\t\t\t\t\t\t\t\t\t\t\t<h2>Maior: R\$ " . number_format($dashboard->getMaiorInvestimento(), 2, ",", ".") . "</h2></a>"; echo "<a href=busca.php?search=" . $dashboard->getMenorInvestimento() . ">\n\t\t\t\t\t\t\t\t\t\t\t<h2>Menor: R\$ " . number_format($dashboard->getMenorInvestimento(), 2, ",", ".") . "</h2></a>"; ?> </div> </div> </div> <div class="row" align="center"> <div class="col-md-5"> <div id="piechart3" style="width: 600px; height: 400px;"></div> </div> <div class="col-md-5"><b>Regiões onde ocorrem obras do PAC</b> <div id="geochart-colors" style="width: 700px; height: 433px;"></div> </div> </div>