Basic

The above example shows you how to create Timeline using built-in Google Charts. The example shows presidential period of most recent U.S.A presidents.

<?php

require_once "../../../../load.koolreport.php";
require_once "MyReport.php";

$report = new MyReport;
$report->run()->render();
<?php
require_once "../../../../load.koolreport.php";


class MyReport extends \koolreport\KoolReport
{

}
<?php

use \koolreport\widgets\google\Timeline;

$data = [
    ['President', 'Start', 'End'],
    ['Washington', "1789-03-30", "1797-02-04"],
    ['Adams',      "1797-02-4",  "1801-02-04"],
    ['Jefferson',  "1801-02-4",  "1809-02-04"]
];

?>
<div class="report-content">
    <div class="text-center">
        <h1>Basic</h1>
    </div>
    <div style="height:200px;">
        <?php
        Timeline::create(array(
            "dataSource" => $data,
            "columns" => array(
                "President",
                "Start" => array(
                    "type" => "date",
                ),
                "End" => array(
                    "type" => "date",
                )
            )
        ));
        ?>
    </div>
</div>

What People Are Saying

"KoolReport helps me very much in creating data report for my corporate! Keep up your good work!"
-- Alain Melsens

"The first use of your product. I was impressed by its easiness and powerfulness. This product is a great and amazing."
-- Dr. Lew Choy Onn

"Fantastic framework for reporting!"
-- Greg Schneider

Download KoolReport Get KoolReport Pro