Region

The above example shows you how to create GeoChart using built-in Google Charts. GeoChart like any KoolReport's widget supports dataSource from DataStore, Process, DataSource or even from array.

<?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\GeoChart;

$data = [
    ['Country', 'Popularity'],
    ['Germany', 200],
    ['United States', 300],
    ['Brazil', 400],
    ['Canada', 500],
    ['France', 600],
    ['RU', 700]
];
?>
<div class="report-container">
    <div class="text-center">
        <h1>Region</h1>
    </div>
    <div style="margin-bottom:50px;">
        <?php
        GeoChart::create(array(
            "dataSource" => $data,
            "columns" => array(
                "Country",
                "Popularity"
            ),
        ));
        ?>
    </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