PHPackages                             mrshanebarron/chart - 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. mrshanebarron/chart

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

mrshanebarron/chart
===================

Charting component for Laravel - supports Livewire and Vue with Chart.js

v1.0.2(6mo ago)014MITPHPPHP ^8.1

Since Dec 14Pushed 6mo agoCompare

[ Source](https://github.com/mrshanebarron/chart)[ Packagist](https://packagist.org/packages/mrshanebarron/chart)[ RSS](/packages/mrshanebarron-chart/feed)WikiDiscussions main Synced today

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

Chart
=====

[](#chart)

A chart visualization component for Laravel applications. Supports line, bar, pie, and other chart types. Works with Livewire and Vue 3.

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

[](#installation)

```
composer require mrshanebarron/chart
```

Livewire Usage
--------------

[](#livewire-usage)

### Line Chart

[](#line-chart)

```

```

### Bar Chart

[](#bar-chart)

```

```

### Pie Chart

[](#pie-chart)

```

```

### Livewire Props

[](#livewire-props)

PropTypeDefaultDescription`type`string`'line'`Chart type`data`arrayrequiredData points`labels`array`[]`X-axis labels`title`string`null`Chart title`height`number`300`Chart height (px)`colors`arraydefaultsData colorsVue 3 Usage
-----------

[](#vue-3-usage)

### Setup

[](#setup)

```
import { SbChart } from './vendor/sb-chart';
app.component('SbChart', SbChart);
```

### Line Chart

[](#line-chart-1)

```

const data = [10, 20, 15, 30, 25, 40, 35];
const labels = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];

```

### Bar Chart

[](#bar-chart-1)

```

const salesData = [12000, 19000, 15000, 22000, 18000, 25000];
const months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'];

```

### Pie Chart

[](#pie-chart-1)

```

const distribution = [35, 25, 20, 15, 5];
const categories = ['Direct', 'Organic', 'Social', 'Referral', 'Other'];

```

### Multiple Datasets

[](#multiple-datasets)

```

```

### Custom Colors

[](#custom-colors)

```

```

### Vue Props

[](#vue-props)

PropTypeDefaultDescription`type`String`'line'``line`, `bar`, `pie`, `doughnut`, `area``data`Array-Single dataset data`datasets`Array-Multiple datasets`labels`Array`[]`Axis labels`title`String`null`Chart title`height`Number`300`Height in pixels`colors`ArrayDefault paletteData colors`showLegend`Boolean`true`Display legend`showGrid`Boolean`true`Display grid linesChart Types
-----------

[](#chart-types)

TypeDescription`line`Line chart with points`bar`Vertical bar chart`pie`Pie chart`doughnut`Donut chart`area`Filled area chartFeatures
--------

[](#features)

- **Multiple Types**: Line, bar, pie, etc.
- **Responsive**: Adapts to container
- **Tooltips**: Hover for values
- **Legend**: Optional legend display
- **Animations**: Smooth transitions

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x

License
-------

[](#license)

MIT License

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance67

Regular maintenance activity

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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 ~1 days

Total

3

Last Release

200d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/193358540?v=4)[Mr Shane Barron](/maintainers/mrshanebarron)[@mrshanebarron](https://github.com/mrshanebarron)

### Embed Badge

![Health badge](/badges/mrshanebarron-chart/health.svg)

```
[![Health](https://phpackages.com/badges/mrshanebarron-chart/health.svg)](https://phpackages.com/packages/mrshanebarron-chart)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M136](/packages/illuminate-cookie)

PHPackages © 2026

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