LaravelPackages.net
Acme Inc.
Toggle sidebar
aabosham/filament-spark-pie

This is my package filament-spark-pie

13.659
8
v2.0.0
About aabosham/filament-spark-pie

aabosham/filament-spark-pie is a Laravel package for this is my package filament-spark-pie. It currently has 8 GitHub stars and 13.659 downloads on Packagist (latest version v2.0.0). Install it with composer require aabosham/filament-spark-pie. Discover more Laravel packages by aabosham or browse all Laravel packages to compare alternatives.

Last updated

This is my package filament-spark-pie

Latest Version on Packagist

Total Downloads

Pie chart for laravel filament

Preview

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

preview-entry

Credits

License

The MIT License (MIT). Please see License File for more information.

Comments