PHPackages                             php-panel/ladmin-ext-chartjs - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. php-panel/ladmin-ext-chartjs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

php-panel/ladmin-ext-chartjs
============================

Use Chartjs in laravel-admin

05PHP

Since Nov 30Pushed 5mo agoCompare

[ Source](https://github.com/php-panel/ladmin-ext-chartjs)[ Packagist](https://packagist.org/packages/php-panel/ladmin-ext-chartjs)[ RSS](/packages/php-panel-ladmin-ext-chartjs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Use Chartjs in laravel-admin
============================

[](#use-chartjs-in-laravel-admin)

[DEMO](http://demo.laravel-admin.org/chartjs)

Login using `admin/admin`

Screenshot
----------

[](#screenshot)

[![qq20180917-132122](https://user-images.githubusercontent.com/1479100/45607189-2b018b80-ba7d-11e8-845e-d7ab810bc07f.png)](https://user-images.githubusercontent.com/1479100/45607189-2b018b80-ba7d-11e8-845e-d7ab810bc07f.png)

Installation
------------

[](#installation)

```
composer require php-panel/ladmin-ext-chartjs

php artisan vendor:publish --tag=laravel-admin-chartjs
```

Configuration
-------------

[](#configuration)

Open `config/admin.php`, add configurations that belong to this extension at `extensions` section.

```
    'extensions' => [

        'chartjs' => [

            // Set to `false` if you want to disable this extension
            'enable' => true,
        ]
    ]
```

Usage
-----

[](#usage)

Create a view in views directory like `resources/views/admin/chartjs.blade.php`, and add following codes:

```

$(function () {
    var ctx = document.getElementById("myChart").getContext('2d');
    var myChart = new Chart(ctx, {
        type: 'bar',
        data: {
            labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
            datasets: [{
                label: '# of Votes',
                data: [12, 19, 3, 5, 2, 3],
                backgroundColor: [
                    'rgba(255, 99, 132, 0.2)',
                    'rgba(54, 162, 235, 0.2)',
                    'rgba(255, 206, 86, 0.2)',
                    'rgba(75, 192, 192, 0.2)',
                    'rgba(153, 102, 255, 0.2)',
                    'rgba(255, 159, 64, 0.2)'
                ],
                borderColor: [
                    'rgba(255,99,132,1)',
                    'rgba(54, 162, 235, 1)',
                    'rgba(255, 206, 86, 1)',
                    'rgba(75, 192, 192, 1)',
                    'rgba(153, 102, 255, 1)',
                    'rgba(255, 159, 64, 1)'
                ],
                borderWidth: 1
            }]
        },
        options: {
            scales: {
                yAxes: [{
                    ticks: {
                        beginAtZero:true
                    }
                }]
            }
        }
    });
});

```

Then show it on the page

```
class ChartjsController extends Controller
{
    public function index(Content $content)
    {
        return $content
            ->header('Chartjs')
            ->body(new Box('Bar chart', view('admin.chartjs')));
    }
}
```

For more usage, please refer to the official [documentation](http://www.chartjs.org/) of chartjs.

License
-------

[](#license)

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

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance48

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f32cb7625515c0969fec15915be4a137f057c3484420bb7abf025c8e975dd3a5?d=identicon)[leeqvip](/maintainers/leeqvip)

---

Top Contributors

[![z-song](https://avatars.githubusercontent.com/u/1479100?v=4)](https://github.com/z-song "z-song (6 commits)")[![jxlwqq](https://avatars.githubusercontent.com/u/2421068?v=4)](https://github.com/jxlwqq "jxlwqq (1 commits)")[![leeqvip](https://avatars.githubusercontent.com/u/35752209?v=4)](https://github.com/leeqvip "leeqvip (1 commits)")[![wuwx](https://avatars.githubusercontent.com/u/4401?v=4)](https://github.com/wuwx "wuwx (1 commits)")

### Embed Badge

![Health badge](/badges/php-panel-ladmin-ext-chartjs/health.svg)

```
[![Health](https://phpackages.com/badges/php-panel-ladmin-ext-chartjs/health.svg)](https://phpackages.com/packages/php-panel-ladmin-ext-chartjs)
```

###  Alternatives

[steadfast-courier/steadfast-courier-laravel-package

A complate Laravel package for SteadFast Courier Limited

162.5k](/packages/steadfast-courier-steadfast-courier-laravel-package)[ammardaana/laravel-domain-driven-design

Generate laravel Domain driven design (monolith) structure

111.2k](/packages/ammardaana-laravel-domain-driven-design)

PHPackages © 2026

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