Spline Chart

The above example shows you how to create SplineChart using D3 package. 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 could be DataStore, Process, DataSource or even simple array.

This example shows how to build a basic Spline chart.

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

class MyReport extends \koolreport\KoolReport
{

}
<h1 class='title'>Spline Chart</h1>
<?php
$data = [
    ['data1' => 30, 'data2' => 130],
    ['data1' => 200, 'data2' => 100],
    ['data1' => 100, 'data2' => 140],
    ['data1' => 400, 'data2' => 200],
    ['data1' => 150, 'data2' => 150],
    ['data1' => 250, 'data2' => 50]
];

\koolreport\d3\SplineChart::create(array(
    "dataSource" => $data,
    "columns" => array(
        'data1',
        'data2'
    ),
));

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