pringgojs / livewire-charts
Livewire chart component
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 1
Language:Blade
Requires
- php: ^8.2
- illuminate/contracts: ^10.0||^11.0
- livewire/livewire: ^3.5
Requires (Dev)
- spatie/laravel-package-tools: ^1.16
This package is not auto-updated.
Last update: 2025-03-13 08:12:37 UTC
README
Apexchart livewire component
Here's an example of how you can use it in your views:
$legend = ['Category A', 'Category B', 'Category C', 'Category D']; $series = [ [ 'name' => 'Series 1', 'data' => [10, 20, 15, 25], ], [ 'name' => 'Series 2', 'data' => [12, 18, 22, 30], ], ];
<livewire:bar-chart-component :series="$series" :categories="$legend" :$title />
Installation
You can install the package via composer:
composer require pringgojs/livewire-charts
Update Data Chart
Here's an example:
use Pringgojs\LivewireCharts\BarChartComponent; function updateChart() { ... $this->dispatch('updateChart', $categories, $series)->to(BarChartComponent::class); }