PHP code example of jakubandrysek / chart

1. Go to this page and download the library: Download jakubandrysek/chart library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jakubandrysek / chart example snippets


use Jakubandrysek\Chart\DonutChart;

$chart = new DonutChart();
$chart->setTitle("15");
$chart->setValueSuffix(' pcs');

$chart->enableRaw();
$chart->addRaw(array(array("a", 1), array("b",2), array("c",3), array("d",12)));
echo $chart;