Welcome to the Advanced Sunburst Chart Example

In this example we will be exploring the Advanced Sunburst Chart using the php-d3-lib.

Advanced Sunburst Chart 1


Sunburst Chart 1 PHP Code

*renders chart into element with id="chart"

// if not already included, include the autoloader
include('../PhpD3/autoloader.php');

$data = array(
    'data_file'=>'visit-sequences.json',
    'dimensions'=>array(
        'height'=>500,
        'width'=>750
    ),
    'render_element'=>array(
        'value'=>'chart',
        'type'=>'id'
    ),
    'file_type'=>'json',
    'autosize'=>false
);

$chart = new PhpD3\Draw('advanced_sunburst_chart',$data);
$chart_render = $chart->render();

echo $chart_render;