https://github.com/pringgojs/livewire-charts
Apexchart livewire component
https://github.com/pringgojs/livewire-charts
Last synced: 7 months ago
JSON representation
Apexchart livewire component
- Host: GitHub
- URL: https://github.com/pringgojs/livewire-charts
- Owner: pringgojs
- Created: 2024-09-11T07:04:55.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-08T00:37:26.000Z (almost 2 years ago)
- Last Synced: 2025-07-31T03:41:57.344Z (about 1 year ago)
- Language: Blade
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Livewire Apexchart component
Apexchart livewire component
Here's an example of how you can use it in your views:
```php
$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],
],
];
```
```bladehtml
```
## Installation
You can install the package via composer:
```bash
composer require pringgojs/livewire-charts
```
## Update Data Chart
Here's an example:
```php
use Pringgojs\LivewireCharts\BarChartComponent;
function updateChart() {
...
$this->dispatch('updateChart', $categories, $series)->to(BarChartComponent::class);
}
```