Download the PHP package alkoumi/filament-google-charts without Composer
On this page you can find all versions of the php package alkoumi/filament-google-charts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alkoumi/filament-google-charts
More information about alkoumi/filament-google-charts
Files in alkoumi/filament-google-charts
Package filament-google-charts
Short Description Google Chart widgets for Filament
License MIT
Homepage https://github.com/alkoumi/filament-google-charts
Informations about the package filament-google-charts
Filament Google Charts Widgets
A seamless integration of Google Charts Widgets into your FilamentPHP applications.
See Google Charts examples Google Charts.
Installation
Step 1: Install via Composer
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
Line charts
Pie chart
Donut chart
Geo chart || Maps 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():
Alkoumi\FilamentGoogleCharts\Widgets\GeoChartWidget - Google Charts documentation
Alkoumi\FilamentGoogleCharts\Widgets\AreaChartWidget - Google Charts documentation
Alkoumi\FilamentGoogleCharts\Widgets\BarChartWidget - Google Charts documentation
Alkoumi\FilamentGoogleCharts\Widgets\ColumnChartWidget - Google Charts documentation
Alkoumi\FilamentGoogleCharts\Widgets\DonutChartWidget - Google Charts documentation
Alkoumi\FilamentGoogleCharts\Widgets\LineChartWidget - Google Charts documentation
Alkoumi\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:
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.
Credits
- Alkoumi
- 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 with dependencies
filament/widgets Version ^3.0|^4.0|^5.0
livewire/livewire Version ^3.0|^4.0
spatie/laravel-package-tools Version ^1.16