예제 #1
0
                {!! Form::open(['route' => 'graficar.barras', 'method' => 'post']) !!}
                {!! Form::checkbox('id', 'Id') !!} Id
                {!! Form::checkbox('existencias', 'Existencias') !!} Existencias
                {!! Form::checkbox('precio', 'Precio') !!} Precio
                {!! Form::submit('Graficar', ['class' => 'btn btn-primary']) !!}
                {!! Form::close() !!}

            </div>

        </div>
        <br><br>

        <div id="barras-div">  @if(isset($barchart))

                <?php 
echo Lava::render('ColumnChart', 'Barras', 'barras-div');
?>

                             @endif
        </div>

        <br><br><br>



    </div>
    <br><br><br>



@stop
예제 #2
0
?>

@stop

@section('IntegrationTestChart')
    
<?php 
echo \Lava::render('PieChart', 'IntegrationTestChart', 'chart2-div');
?>

@stop

@section('RegressionTestChart')
    
<?php 
echo \Lava::render('PieChart', 'RegressionTestChart', 'chart3-div');
?>

@stop

@section('tableRow')

  @if(sizeof($runs) == 0)
      <?php 
echo 'There are no test runs.';
?>
  @else
      @foreach($runs as $run)
      <?php 
$passed = 0;
$failed = 0;
$mineralsChart = \Lava::LineChart('Minerals')->dataTable($mineralsG)->title('Percent of Daily Minerals Fulfilled');
for ($a = 4; $a >= 1; $a--) {
    $mineralsG->addRow(array($a + 1 . ' days ago', $previousNutrientTotals[301][$a] * 100 / $vals->getRecommendedCalcium(), $previousNutrientTotals[312][$a] * 100 / $vals->getRecommendedCopper(), $previousNutrientTotals[303][$a] * 100 / $vals->getRecommendedIron(), $previousNutrientTotals[304][$a] * 100 / $vals->getRecommendedMagnesium(), $previousNutrientTotals[315][$a] * 100 / $vals->getRecommendedManganese(), $previousNutrientTotals[305][$a] * 100 / $vals->getRecommendedPhosphorus(), $previousNutrientTotals[306][$a] * 100 / $vals->getRecommendedPotassium(), $previousNutrientTotals[307][$a] * 100 / $vals->getRecommendedSodium(), $previousNutrientTotals[309][$a] * 100 / $vals->getRecommendedZinc()));
}
$mineralsG->addRow(array('1 day ago', $previousNutrientTotals[301][0] * 100 / $vals->getRecommendedCalcium(), $previousNutrientTotals[312][0] * 100 / $vals->getRecommendedCopper(), $previousNutrientTotals[303][0] * 100 / $vals->getRecommendedIron(), $previousNutrientTotals[304][0] * 100 / $vals->getRecommendedMagnesium(), $previousNutrientTotals[315][0] * 100 / $vals->getRecommendedManganese(), $previousNutrientTotals[305][0] * 100 / $vals->getRecommendedPhosphorus(), $previousNutrientTotals[306][0] * 100 / $vals->getRecommendedPotassium(), $previousNutrientTotals[307][0] * 100 / $vals->getRecommendedSodium(), $previousNutrientTotals[309][0] * 100 / $vals->getRecommendedZinc()));
$mineralsG->addRow(array('Today', $todayNutrientTotals[301] * 100 / $vals->getRecommendedCalcium(), $todayNutrientTotals[312] * 100 / $vals->getRecommendedCopper(), $todayNutrientTotals[303] * 100 / $vals->getRecommendedIron(), $todayNutrientTotals[304] * 100 / $vals->getRecommendedMagnesium(), $todayNutrientTotals[315] * 100 / $vals->getRecommendedManganese(), $todayNutrientTotals[305] * 100 / $vals->getRecommendedPhosphorus(), $todayNutrientTotals[306] * 100 / $vals->getRecommendedPotassium(), $todayNutrientTotals[307] * 100 / $vals->getRecommendedSodium(), $todayNutrientTotals[309] * 100 / $vals->getRecommendedZinc()));
echo \Lava::render('LineChart', 'Minerals', 'minerals_div');
?>
</div>

                <div id="vitamins_div" align="center" style="height:400px; width: 950px; padding-left: 0px">
                <?php 
$vitaminsChart = \Lava::LineChart('Vitamins')->dataTable($vitaminsG)->title('Percent of Daily Vitamins Fulfilled');
for ($a = 4; $a >= 1; $a--) {
    $vitaminsG->addRow(array($a + 1 . ' days ago', $previousNutrientTotals[320][$a] * 100 / $vals->getRecommendedVitaminA(), $previousNutrientTotals[578][$a] * 100 / $vals->getRecommendedVitaminB12(), $previousNutrientTotals[415][$a] * 100 / $vals->getRecommendedVitaminB6(), $previousNutrientTotals[401][$a] * 100 / $vals->getRecommendedVitaminC(), $previousNutrientTotals[328][$a] * 100 / $vals->getRecommendedVitaminD(), $previousNutrientTotals[323][$a] * 100 / $vals->getRecommendedVitaminE(), $previousNutrientTotals[430][$a] * 100 / $vals->getRecommendedVitaminK()));
}
$vitaminsG->addRow(array('1 day ago', $previousNutrientTotals[320][0] * 100 / $vals->getRecommendedVitaminA(), $previousNutrientTotals[578][0] * 100 / $vals->getRecommendedVitaminB12(), $previousNutrientTotals[415][0] * 100 / $vals->getRecommendedVitaminB6(), $previousNutrientTotals[401][0] * 100 / $vals->getRecommendedVitaminC(), $previousNutrientTotals[328][0] * 100 / $vals->getRecommendedVitaminD(), $previousNutrientTotals[323][0] * 100 / $vals->getRecommendedVitaminE(), $previousNutrientTotals[430][0] * 100 / $vals->getRecommendedVitaminK()));
$vitaminsG->addRow(array('Today', $todayNutrientTotals[320] * 100 / $vals->getRecommendedVitaminA(), $todayNutrientTotals[578] * 100 / $vals->getRecommendedVitaminB12(), $todayNutrientTotals[415] * 100 / $vals->getRecommendedVitaminB6(), $todayNutrientTotals[401] * 100 / $vals->getRecommendedVitaminC(), $todayNutrientTotals[328] * 100 / $vals->getRecommendedVitaminD(), $todayNutrientTotals[323] * 100 / $vals->getRecommendedVitaminE(), $todayNutrientTotals[430] * 100 / $vals->getRecommendedVitaminK()));
echo \Lava::render('LineChart', 'Vitamins', 'vitamins_div');
?>
</div>
            </div> <!--ends graph tabpanel-->
            </div> <!--ends tab-content-->
        </div>
        <br><br><br>
    </body>
@endsection



    
<div class="well well-lg col-md-6">
<h4>Planes Por Empresas</h4>
<?php 
use Carbon\Carbon;
$stocksTable = Lava::DataTable();
$empresas = Empresas::all()->toArray();
$stocksTable->addStringColumn('Empresa')->addNumberColumn('Cantidad');
foreach ($empresas as $key => $empresa) {
    $rowData = array($empresa["nombre"], App\Planes::where("empresa_id", "=", $empresa["id"])->count());
    $stocksTable->addRow($rowData);
}
$lineChart = Lava::PieChart('Stocks')->setOptions(array('datatable' => $stocksTable));
echo Lava::render('PieChart', 'Stocks', 'stocks-div', true);
?>
	
</div>
예제 #5
0
?>
    <!--<?php 
//use App\helpers\Helper;
//Helper::buildNavMenu();
?>
-->
@stop

@section('ChartUno')
    
<?php 
echo \Lava::render('PieChart', 'myPieChart', 'chart-div');
?>

@stop

@section('ChartDos')
    
<?php 
echo \Lava::render('PieChart', 'myThreeDPieChart', 'chart2-div');
?>

@stop

@section('ChartTres')
    
<?php 
echo \Lava::render('DonutChart', 'myDonut', 'chart3-div');
?>

@stop
예제 #6
0
			</div>
		</div>
	</div>
</div>


<div class="row">
	<div class="col-md-4">
		<div class="panel panel-default">
			<div class="panel-heading">Bomber by type</div>
			<div class="panel-body">
				<div id="bomber_type"></div>
				<?php 
echo Lava::render('PieChart', 'bomber', 'bomber_type');
?>
			</div>
		</div>
	</div>

	<div class="col-md-8">
		<div class="panel panel-default">
			<div class="panel-heading">All Ships by type</div>
			<div class="panel-body">
				<div id="ship_type"></div>
				<?php 
echo Lava::render('PieChart', 'ships', 'ship_type');
?>
			</div>
		</div>
	</div>
</div>
<div class="well well-lg col-md-12">
<h4>Planes mas Visitados</h4>
<?php 
use Carbon\Carbon;
$stocksTable = Lava::DataTable();
$planes = App\Planes::all()->toArray();
$stocksTable->addStringColumn('Usuarios Activos')->addNumberColumn('Cantidad de Visitas en el mes');
foreach ($planes as $key => $plan) {
    $rowData = array($plan["nombre"], rand(50, 100));
    $stocksTable->addRow($rowData);
}
$lineChart = Lava::ColumnChart('Stocks')->setOptions(array('datatable' => $stocksTable));
echo Lava::render('ColumnChart', 'Stocks', 'planes-div', true);
?>
	
</div>
예제 #8
0
<html>
   <?php 
echo Lava::render('ColumnChart', 'Stocks', 'stocks-div', array('width' => 1024, 'height' => 768));
?>
</html>
예제 #9
0
<div class="well well-lg col-md-6">
<h4>Usuarios Por Estado</h4>
<?php 
use Carbon\Carbon;
$stocksTable = Lava::DataTable();
$stocksTable->addStringColumn('Usuarios Activos')->addNumberColumn('Cantidad');
$rowData = array("Usuarios Activos", App\User::where("estado", "1")->count());
$stocksTable->addRow($rowData);
$rowData = array("Usuarios Inactivos", App\User::where("estado", "0")->count());
$stocksTable->addRow($rowData);
$lineChart = Lava::PieChart('Stocks')->setOptions(array('datatable' => $stocksTable));
echo Lava::render('PieChart', 'Stocks', 'usuarios-div', true);
?>
	
</div>