当前位置: 首页>>代码示例>>PHP>>正文


PHP Dashboard::getMaiorInvestimento方法代码示例

本文整理汇总了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]);
开发者ID:gabe351,项目名称:monop,代码行数:30,代码来源:index.php

示例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>

开发者ID:ArthurNovaes,项目名称:monop,代码行数:27,代码来源:index.php


注:本文中的Dashboard::getMaiorInvestimento方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。