pringgojs/livewire-charts

Livewire chart component
36 1
Install
composer require pringgojs/livewire-charts
Latest Version:v1.0.1
PHP:^8.2
License:MIT
Last Updated:Oct 8, 2024
Links: GitHub  ·  Packagist
Maintainer: pringgojs

Livewire Apexchart component

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);
}

Related Packages

livewire/flux

The official UI component library for Livewire.

9,042,969 958
infyomlabs/adminlte-templates

AdminLTE templates for InfyOm Laravel Generator

1,625,183 266
garygreen/pretty-routes

Pretty routes for Laravel 5+

1,326,775 650
infyomlabs/swagger-generator

Swagger Generator for InfyOm Laravel Generator

1,111,507 114
snowfire/beautymail

Send beautiful html emails with Laravel

759,514 1,312