Gauge

This example shows how to use Gauge

The above example shows you how to create Gauge using built-in Google Charts. In this example, for purpose of chart demonstration only, we do use mock-up data from array. As you can see, the KoolReport's widget in general support dataSource which could be DataStore, Process, DataSource or even simple array.

<?php

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

$report = new MyReport;
$report->run()->render();
<?php
require_once "../../../../koolreport/autoload.php";
class MyReport extends \koolreport\KoolReport
{

}
<?php
    use \koolreport\widgets\google\Gauge;
?>
<div class="report-content">
    <div class="text-center">
        <h1>Gauge</h1>
        <p class="lead">
            This example shows how to use Gauge
        </p>
    </div>
        
    <?php
    Gauge::create(array(
        "title"=>"Sale Report on Stack",
        "dataSource"=>array(
            array("label"=>"Memory","value"=>80),
            array("label"=>"CPU","value"=>55),
            array("label"=>"Nework","value"=>68),
        ),
        "columns"=>array(
            "label",
            "value"=>array(
                "suffix"=>"%",
            )
        )
    ));
    ?>
    
</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