aabosham / filament-spark-pie
This is my package filament-spark-pie
Installs: 9 482
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 1
Forks: 1
Open Issues: 3
Language:JavaScript
Requires
- php: ^8.0 || ^8.1 || ^8.2
- filament/filament: ^3
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-11-10 00:58:59 UTC
README
Pie chart for laravel filament
Preview
Installation
You can install the package via composer:
For filament v3
composer require aabosham/filament-spark-pie:"^2.0"
For filament v2
composer require aabosham/filament-spark-pie:"^0.0.4"
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-spark-pie-views"
Usage
Table
On your filament resource file
use AAbosham\FilamentSparkPie\Tables\Columns\SparkPieColumn;
On your filament table schema
use AAbosham\FilamentSparkPie\Tables\Columns\SparkPieColumn; SparkPieColumn::make('rate') ->size(70) // height ->color('green') // green , #598989 ->suffix('%') // or prefix
Infolist (Only for filament v3)
On your filament Infolist schema
use AAbosham\FilamentSparkPie\Infolists\Components\SparkPieEntry; SparkPieEntry::make('rate') ->size(70) // height ->color('green') // green , #598989 ->suffix('%') // or prefix
Credits
License
The MIT License (MIT). Please see License File for more information.