本文整理匯總了PHP中Dashboard::getMenorInvestimento方法的典型用法代碼示例。如果您正苦於以下問題:PHP Dashboard::getMenorInvestimento方法的具體用法?PHP Dashboard::getMenorInvestimento怎麽用?PHP Dashboard::getMenorInvestimento使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Dashboard
的用法示例。
在下文中一共展示了Dashboard::getMenorInvestimento方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: drawChart
<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,
示例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>
</div>