Download the PHP package arbermustafa/filament-google-charts-widgets without Composer
On this page you can find all versions of the php package arbermustafa/filament-google-charts-widgets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arbermustafa/filament-google-charts-widgets
More information about arbermustafa/filament-google-charts-widgets
Files in arbermustafa/filament-google-charts-widgets
Package filament-google-charts-widgets
Short Description Chart widget for Filament Php using Google Charts
License
Informations about the package filament-google-charts-widgets
Filament Google Charts Widgets
Create chart widgets using Google Charts.
Installation
You can install the package into a Laravel app that uses Filament via composer::
Filament V2 - if you are using Filament v2.x, you can use this section
You can publish the config file with:
The config
file contains default global customization options for better charts rendering in light/dark theme based on the great work of Weekdone
Optionally, you can publish the view using:
Usage
Pie chart
Donut chart
Available chart types
Below is a list of available chart widget classes which you may extend, and their corresponding Google Charts documentation page, for inspiration what to return from getData():
ArberMustafa\FilamentGoogleCharts\Widgets\AreaChartWidget
- Google Charts documentationArberMustafa\FilamentGoogleCharts\Widgets\BarChartWidget
- Google Charts documentationArberMustafa\FilamentGoogleCharts\Widgets\ColumnChartWidget
- Google Charts documentationArberMustafa\FilamentGoogleCharts\Widgets\DonutChartWidget
- Google Charts documentationArberMustafa\FilamentGoogleCharts\Widgets\LineChartWidget
- Google Charts documentationArberMustafa\FilamentGoogleCharts\Widgets\PieChartWidget
- Google Charts documentation
Live updating (polling)
By default, chart widgets refresh their data every 5 seconds.
To customize this, you may override the $pollingInterval
property on the class to a new interval:
Alternatively, you may disable polling altogether:
Chart configuration options
You may specify an $options
variable on the chart class to control the many configuration options that the Google Charts library provides. For instance, you could change the position off the legend for PieChartWidget class and set a custom height:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
If you want to contribute to this package, you may want to test it in a real Filament project:
- Fork this repository to your Github account.
- Create a Filament app locally.
- Clone your fork in your Filament app root directoy.
- In the
/filament-google-charts-widgets
directory, create a branch for your fix/improvement, e.g.fix/pie-chart
.
Install the packages in your app's composer.json
:
Now run composer update
.
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Arber Mustafa
- Google Web Components
- Weekdone
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-google-charts-widgets with dependencies
filament/filament Version ^2.16
illuminate/contracts Version ^9.0|^10.0
livewire/livewire Version ^2.10
spatie/laravel-package-tools Version ^1.13.5