本文整理汇总了PHP中Dashboard::getMaiorInvestimento方法的典型用法代码示例。如果您正苦于以下问题:PHP Dashboard::getMaiorInvestimento方法的具体用法?PHP Dashboard::getMaiorInvestimento怎么用?PHP Dashboard::getMaiorInvestimento使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Dashboard
的用法示例。
在下文中一共展示了Dashboard::getMaiorInvestimento方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: drawChart
chart.draw(data, options);
}
</script>
<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]);
示例2:
};
</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>