Ejemplo n.º 1
0
        <img src="<?php 
echo asset('images/forkme.png');
?>
" alt="Fork me on GitHub">
    </a>

    <h1 class="exampleTitle">
        <?php 
echo link_to('/lavacharts/examples', 'LavaChart Examples');
?>
 \ Basic A Chart
    </h1>
    <?php 
echo Lava::AreaChart('Stocks')->outputInto('stock_div');
echo Lava::div(1000, 400);
if (Lava::hasErrors()) {
    echo Lava::getErrors();
}
?>

<br />

<div class="prettyprintContainer">
<span class="prettyprintContainerLabel">Closure Route/Controller</span>
<div class="prettyprintCode">
<pre class="prettyprint linenums">
$stocksTable = Lava::DataTable('Stocks');

$stocksTable->addColumn('date', 'Date', 'date')
            ->addColumn('number', 'Projected', 'projected')
            ->addColumn('number', 'Closing', 'closing');