PHPackages                             cosyphp/laravel-admin-echarts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. cosyphp/laravel-admin-echarts

ActiveLibrary[Admin Panels](/categories/admin)

cosyphp/laravel-admin-echarts
=============================

laravel-admin的echarts统计图表扩展包

v1.0.1(7y ago)94743MITHTMLPHP &gt;=7.0.0CI failing

Since May 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/cosyphp/laravel-admin-echarts)[ Packagist](https://packagist.org/packages/cosyphp/laravel-admin-echarts)[ Docs](https://github.com/cosyphp/laravel-admin-echarts.git)[ RSS](/packages/cosyphp-laravel-admin-echarts/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

laravel-admin-echarts
=====================

[](#laravel-admin-echarts)

laravel-admin的echarts统计图表扩展包

安装
--

[](#安装)

```
$ composer require cosyphp/laravel-admin-echarts

$ php artisan vendor:publish --tag=laravel-admin-echarts

```

使用
--

[](#使用)

- 折线图

```
public function line(Content $content)
{
    return $content->header('echarts')
        ->row(function(Row $row){
            $row->column(8, function (Column $column) {
                $chartData = [
                    'title' => '示例折线图',
                    'legend' => [
                        'data' => ['已付款订单','未付款订单','待发货订单','已完成订单'],
                        'selected' => ['已付款订单' => true, '未付款订单' => false, '待发货订单' => true, '已完成订单' => true]
                    ],
                    'yAxisName' => '订单量',
                    'xAxisData' => ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月'],
                    'seriesData' => [
                        [
                            'name' => '已付款订单',
                            'type' => 'line',
                            'stack' => '总量',
                            'data' => [120, 132, 101, 134, 90, 230, 210, 134, 90, 230, 210, 300]
                        ],
                        [
                            'name' => '未付款订单',
                            'type' => 'line',
                            'stack' => '总量',
                            'data' => [220, 182, 191, 234, 290, 330, 310, 101, 134, 90, 230, 210]
                        ],
                        [
                            'name' => '待发货订单',
                            'type' => 'line',
                            'stack' => '总量',
                            'data' => [150, 232, 201, 154, 190, 330, 410, 182, 191, 234, 290, 330]
                        ],
                        [
                            'name' => '已完成订单',
                            'type' => 'line',
                            'stack' => '总量',
                            'data' => [320, 332, 301, 334, 390, 330, 320, 201, 154, 190, 330, 410]
                        ]
                    ]
                ];
                $options = [
                    'chartId' => str_random(),
                    'height' => '600px',
                    'chartJson' => json_encode($chartData)
                ];
                $column->row(new Box('折线图', ECharts::line($options)));
            });
        });
}

```

- 饼状图

```
public function pie(Content $content)
{
    return $content->header('echarts')
        ->row(function (Row $row) {
            $row->column(6, function (Column $column) {
                $chartData = [
                    'title' => '示例饼状图',
                    'legends' => ["未充值人数（221105）", "总充值人数（18315）"],
                    'seriesName' => '总充值占比',
                    'seriesData' => [
                        [
                            'name' => '未充值人数',
                            'value' => 221105,
                        ],
                        [
                            'name' => '总充值人数',
                            'value' => 18315,
                        ]
                    ]
                ];
                $options = [
                    'chartId' => str_random(),
                    'height' => '500px',
                    'chartJson' => json_encode($chartData)
                ];
                $column->row(new Box('饼状图', ECharts::pie($options)));
            });
        });
}

```

提示
--

[](#提示)

上面使用说明中的数据，可以从数据库或者其他地方获取后进行组装整理成相应的格式，然后传参给 `ECharts` 即可。

联系我
---

[](#联系我)

在使用中有任何问题，欢迎反馈给我，可以通过以下联系方式跟我交流

- 邮箱: `cosyphp@qq.com`
- QQ: `85082368`

License
-------

[](#license)

Licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2610d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10446658?v=4)[cosyphp](/maintainers/cosyphp)[@cosyphp](https://github.com/cosyphp)

---

Top Contributors

[![cosyphp](https://avatars.githubusercontent.com/u/10446658?v=4)](https://github.com/cosyphp "cosyphp (3 commits)")

---

Tags

laravel-adminecharts

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cosyphp-laravel-admin-echarts/health.svg)

```
[![Health](https://phpackages.com/badges/cosyphp-laravel-admin-echarts/health.svg)](https://phpackages.com/packages/cosyphp-laravel-admin-echarts)
```

###  Alternatives

[laravel-admin-ext/wang-editor

wangEditor extension for laravel-admin

5984.7k](/packages/laravel-admin-ext-wang-editor)[mwz747512353/laravel-admin-echarts

141.7k](/packages/mwz747512353-laravel-admin-echarts)[jxlwqq/composer-viewer

Composer Viewer for Laravel-admin

2713.0k](/packages/jxlwqq-composer-viewer)[jadekun/sku

382.2k](/packages/jadekun-sku)[sharemant/laravel-admin-ext-editormd

EditorMd(V.1.5.0) for laravel-admin.

177.1k](/packages/sharemant-laravel-admin-ext-editormd)[jonexyz/wang-editor-v4

laravel admin editor

161.4k](/packages/jonexyz-wang-editor-v4)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
