# laravel-admin-extensions--chartjs
**Repository Path**: uygurjan2008_admin/chartjs
## Basic Information
- **Project Name**: laravel-admin-extensions--chartjs
- **Description**: laravel-admin-extensions--chartjs Use Echarts in laravel-admin
- **Primary Language**: PHP
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-04-03
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
Use Chartjs in laravel-admin
======
[DEMO](http://demo.laravel-admin.org/chartjs)
Login using `admin/admin`
## Screenshot

## Installation
```bash
composer require laravel-admin-ext/chartjs
php artisan vendor:publish --tag=laravel-admin-chartjs
```
## Configuration
Open `config/admin.php`, add configurations that belong to this extension at `extensions` section.
```php
'extensions' => [
'chartjs' => [
// Set to `false` if you want to disable this extension
'enable' => true,
]
]
```
## Usage
Create a view in views directory like `resources/views/admin/chartjs.blade.php`, and add following codes:
```html
```
Then show it on the page
```php
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.
## Donate
> Help keeping the project development going, by donating a little. Thanks in advance.
[](https://www.paypal.me/zousong)

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