PHP code example of christopherarter / cool-charts
1. Go to this page and download the library: Download christopherarter/cool-charts 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/ */
christopherarter / cool-charts example snippets
use ChristopherArter\CoolCharts\Chart;
$chart = Chart::make()
->pie()
->title('My Cool Chart')
->data([1, 2, 3, 4, 5])
->labels(['One', 'Two', 'Three', 'Four', 'Five'])
->useChartJs()
->build();