Sankey Diagram

This example shows how to use Sankey Diagram

The above example shows you how to create Sankey using built-in Google Charts.

<?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\Sankey;
?>
<div class="report-content">
    <div class="text-center">
        <h1>Sankey Diagram</h1>
        <p class="lead">
            This example shows how to use Sankey Diagram
        </p>
    </div>

    <div style="margin-bottom:50px;">
    <?php
    Sankey::create(array(
        "dataSource"=>[
            [ 'A', 'X', 5 ],
            [ 'A', 'Y', 7 ],
            [ 'A', 'Z', 6 ],
            [ 'B', 'X', 2 ],
            [ 'B', 'Y', 9 ],
            [ 'B', 'Z', 4 ]
        ]
    ));
    ?>
    </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