定制 pringgojs/livewire-charts 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pringgojs/livewire-charts

最新稳定版本:v1.0.1

Composer 安装命令:

composer require pringgojs/livewire-charts

包简介

Livewire chart component

README 文档

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

统计信息

  • 总下载量: 31
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-11