PHP code example of dragonofmercy / laravel-apexcharts
1. Go to this page and download the library: Download dragonofmercy/laravel-apexcharts 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/ */
dragonofmercy / laravel-apexcharts example snippets
use ApexCharts\Builder;
use ApexCharts\Options\Chart;
use ApexCharts\Options\Serie;
use ApexCharts\Enums\ChartType;
$chart = (new Builder())
->chart(Chart::make()->type(ChartType::Line)->height(350))
->labels(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']);
->serie(Serie::make()->name('Sales')->data([30, 40, 35, 50, 49, 60]))
->toJson();
echo $chart->renderChart();
`bash
php artisan vendor:publish --tag=apexcharts
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.