imreallyunoriginal / plottwist
A Laravel wrapper for ChartJS
0.1.0
2024-01-01 15:38 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is auto-updated.
Last update: 2024-10-08 17:11:41 UTC
README
A simple, intuitive, and eloquent Laravel PHP wrapper for ChartJS
Installation
You can install the package via composer:
composer require imreallyunoriginal/plottwist
Usage
Chart::radar('Test Chart', [ Chart::dataset('Test 1', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]), Chart::dataset('Test 2', [12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1]), ])->setLabels(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']) Chart::line('Chart Title') ->addDataset('Dataset 1 Label', [ 'Label 1' => 16, 'Label 2' => 32, 'Label 3' => 10, 'Label 4' => 12, 'Label 5' => 10, ])
Testing
composer test
Contributing
Please see the Contributing File for more information.
License
The MIT License (MIT). Please see the License File for more information.