# 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 ![qq20180917-132122](https://user-images.githubusercontent.com/1479100/45607189-2b018b80-ba7d-11e8-845e-d7ab810bc07f.png) ## 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. [![PayPal Me](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/zousong) ![-1](https://cloud.githubusercontent.com/assets/1479100/23287423/45c68202-fa78-11e6-8125-3e365101a313.jpg) License ------------ Licensed under [The MIT License (MIT)](LICENSE).