PHP code example of adecks / chartjs

1. Go to this page and download the library: Download adecks/chartjs 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/ */

    

adecks / chartjs example snippets


(new Bubble(['Jan','Feb','Mar']))->addData(new Dataset('MyfirsData', ['x' => 123 , 'y' => 321 , 'r' => 10 ); 

use Adecks\ChartJs\Types\Bar;
use Adecks\ChartJs\Types\Bubble; 
use Adecks\ChartJs\Types\Doughnut; 
use Adecks\ChartJs\Types\Line;
use Adecks\ChartJs\Types\Pie; 
use Adecks\ChartJs\Types\PolarArea; 
use Adecks\ChartJs\Types\Radar; 
use Adecks\ChartJs\Types\Scatter; 
 bash

php vendor/bin/phpunit