1. Go to this page and download the library: Download aabosham/filament-spark-pie 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/ */
aabosham / filament-spark-pie example snippets
use AAbosham\FilamentSparkPie\Tables\Columns\SparkPieColumn;
use AAbosham\FilamentSparkPie\Tables\Columns\SparkPieColumn;
SparkPieColumn::make('rate')
->size(70) // height
->color('green') // green , #598989
->suffix('%') // or prefix
use AAbosham\FilamentSparkPie\Infolists\Components\SparkPieEntry;
SparkPieEntry::make('rate')
->size(70) // height
->color('green') // green , #598989
->suffix('%') // or prefix