Download the PHP package helvetitec/lagoon-charts without Composer
On this page you can find all versions of the php package helvetitec/lagoon-charts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download helvetitec/lagoon-charts
More information about helvetitec/lagoon-charts
Files in helvetitec/lagoon-charts
Package lagoon-charts
Short Description Google Charts for Laravel Livewire 3
License GPL-3.0
Informations about the package lagoon-charts
Lagoon Charts
Google Charts for Laravel Livewire
Requirements
- Laravel 9+
- Livewire 3+
Installation
Run composer:
For Livewire 2:
Included Charts
- [x] Area Charts
- [x] Bar Charts
- [x] Candlestick Charts
- [x] Column Charts
- [x] Line Charts
- [x] Pie Charts
- [x] Waterfall Charts
- [x] Timelines
- [x] Gantt Charts
- [ ] Other Charts
Included Functions
- [x] Actions
- [x] Events (Selected, Ready, Error)
- [x] Darkmode (Can be manually set if you set the 'viewMode' to 'light' to enable lightmode or 'dark' to enable darkmode
- [ ] Automatic Darkmode (Would be nice if it would be automatically set)
- [ ] Custom Tooltips
- [ ] HTML Tooltips
Usage
Prepare View
Important, since Version 2.2 you will need to add @lagoonScripts and @lagoonStyles to your layouts!
Add Styles:
CoreCharts:
Gantt Charts:
Timeline Charts:
Pie Chart
Livewire
Blade
Line Chart
Livewire
Blade
Candlestick Chart
Livewire
Blade
Waterfall Chart
Livewire
Blade
Bar Chart
Livewire
Blade
Column Chart
Livewire
Blade
Area Chart
Livewire
Blade
Gantt Chart
Livewire
Blade
Timeline
Livewire
Blade
Add options to the Charts
You can add options with the 'options' => ['option1' => 'something'] variable. You can add all options that are inside the respective Google Chart.
Blade
Add link to Chart PNG
You can add a link to a PNG from the chart by adding 'printable' => true, this does only work with corecharts!
Blade
Using Actions
You can use actions inside the charts by adding the SwitchAction object.
PHP
Blade
Using Events
You can use events inside the charts to interact with the charts and the data within
PHP
Blade