Esempio n. 1
0
// 		$chart = new HorizontalBarChart(600, 170);
// 		$dataSet = new XYDataSet();
// 		$dataSet->addPoint(new Point("Total Contrato (A)", $contrato));
// 		$dataSet->addPoint(new Point("Valor Medido (B)", $valor));
// 		$dataSet->addPoint(new Point("Saldo (A-B)", $saldo));
// 		$chart->setDataSet($dataSet);
// 		$chart->getPlot()->setGraphPadding(new Padding(5, 140, 20, 140));
// 		$chart->setTitle("Gráfico por ano (".$ano.")");
// 		$chart->render("generated/resumo.png");
/*
 * Termino do Grafico informando o grupo 1
 */
/*
 * Inicio do Grafico informando o grupo 2
 */
$valor = $medicao->getTotalReembolso('2') + $medicao->getTotalRemuneracao('2');
$contrato = 231424710;
$saldo = $contrato - $valor;
/*	$chart = new HorizontalBarChart(1390,390);

		$dataSet = new XYDataSet();
		$dataSet2 = new XYDataSet();
		$dataSet3 = new XYDataSet();
		
		$dataSet->addPoint(new Point("Total Contrato (A)", floor($contrato)));
		$dataSet->addPoint(new Point("Valor Medido (B)", floor($valor)));
		$dataSet->addPoint(new Point("Saldo (A-B)", floor($saldo)));
		$chart->setDataSet($dataSet);
		$chart->getPlot()->setGraphPadding(new Padding(5, 140, 20, 140));

		$chart->setTitle("Balanço Geral em Ienes Grupo 2");