PHPackages                             nabcellent/chartisan - 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. nabcellent/chartisan

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

nabcellent/chartisan
====================

The laravel charting package

1.3.0(2y ago)63.7k↓40%2[1 PRs](https://github.com/Nabcellent/chartisan/pulls)MITPHPPHP &gt;=8.0

Since Jan 25Pushed 2y ago3 watchersCompare

[ Source](https://github.com/Nabcellent/chartisan)[ Packagist](https://packagist.org/packages/nabcellent/chartisan)[ Docs](https://github.com/nabcellent/chartisan)[ RSS](/packages/nabcellent-chartisan/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (7)Used By (0)

CHARTISAN
=========

[](#chartisan)

[![Build For Laravel](https://camo.githubusercontent.com/2eea899526ab621d5a3ab61278d6a110bb020ebdd8ecd0e3273c9f793d6a4328/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275696c745f666f722d4c61726176656c2d7265642e737667)](https://styleci.io/repos/69124179)[![Total Downloads](https://camo.githubusercontent.com/a9a2ae283787038cc85edd9eee48f9d7f467fa660908aefaf04447bd3c833b61/68747470733a2f2f706f7365722e707567782e6f72672f6e616263656c6c656e742f63686172746973616e2f642f746f74616c2e737667)](https://packagist.org/packages/nabcellent/chartisan)[![Latest Stable Version](https://camo.githubusercontent.com/15c5d3e3f497a3526cd25a8ba3f30840a59d6e2cc18a0b37c3e44dea7e5b0b09/68747470733a2f2f706f7365722e707567782e6f72672f6e616263656c6c656e742f63686172746973616e2f762f737461626c652e737667)](https://packagist.org/packages/nabcellent/chartisan)[![License](https://camo.githubusercontent.com/8d9f7d2a691c1c13136703df186909c304353e70f81b3d2e8fbfa18fd0a67556/68747470733a2f2f706f7365722e707567782e6f72672f6e616263656c6c656e742f63686172746973616e2f6c6963656e73652e737667)](https://packagist.org/packages/nabcellent/chartisan)[![PHP Version Require](https://camo.githubusercontent.com/1f44535f03cebe686a70808feb9288d69e48eb1aad6d3d296119c401b9892b74/68747470733a2f2f706f7365722e707567782e6f72672f6e616263656c6c656e742f63686172746973616e2f726571756972652f706870)](https://packagist.org/packages/nabcellent/chartisan)

What is Chartisan?
------------------

[](#what-is-chartisan)

Chartisan is a Laravel library used to create charts. This library attempts to provide more laravel-like features into it by providing support for chart creation using the artisan command, middleware support and routing support. This makes handling charts feel more laravel-like.

[![Chart](https://camo.githubusercontent.com/e1c85f3c8620c16ab1a99351c1ab06ca9fcf325e6f694bebfd270d87481097eb/68747470733a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f70774f4e745a4955534f476e787564394f6d68342d512e706e67)](https://camo.githubusercontent.com/e1c85f3c8620c16ab1a99351c1ab06ca9fcf325e6f694bebfd270d87481097eb/68747470733a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f70774f4e745a4955534f476e787564394f6d68342d512e706e67)

Chartisan makes creating charts a laravel experience that's quick and elegant.

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

[](#installation)

You can install Chartisan by using [Composer](https://getcomposer.org/)

You can use the following composer command to install it into an existing laravel project.

```
composer require nabcellent/chartisan

```

Laravel will already register the service provider to your application because Chartisan does make use of the extra laravel tag on the `composer.json` schema.

Publish the configuration file
------------------------------

[](#publish-the-configuration-file)

You can publish the config file with:

```
php artisan vendor:publish --tag=chartisan

```

This will create a new file under `app/config/chartisan.php` that you can edit to modify the options of Chartisan.

Create Charts
-------------

[](#create-charts)

You can start creating charts with the typical `make` command by laravel artisan.

Following the other make conventions, you may use the following command to create a new chart and give it a name. The name will be used by the class and also the route name. You may further change this in the created class.

```
php artisan make:chart SampleChart

```

This will create a SampleChart class under `App\Charts` namespace that will look like this:

```
