Download the PHP package fx3costa/laravelchartjs without Composer
On this page you can find all versions of the php package fx3costa/laravelchartjs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravelchartjs
laravel-chartjs - Chart.js v2 wrapper for Laravel 5.x
⛔️ DEPRECATED
This repository is now deprecated. Use @icehouse-ventures instead for newer updates
No Longer Maintained. This lib is basically a bridge to Chartjs so it is very likely that some problem or issue is better resolved in the Chartjs repository itself.
Simple package to facilitate and automate the use of charts in Laravel 5.x using the Chart.js v2 library from Nick Downie.
Setup:
And add the Service Provider in your file config/app.php:
Finally, for now, you must install and add to your layouts / templates the Chartjs library that can be easily found for download at: http://www.chartjs.org. This setting will also be improved.
Usage:
You can request to Service Container the service responsible for building the charts and passing through fluent interface the chart settings.
For now the builder needs the name of the chart, the type of chart that can be anything that is supported by chartjs and the other custom configurations like labels, datasets, size and options.
In the dataset interface you can pass any configuration and option to your chart. All options available in chartjs documentation are supported. Just write the configuration with php array notations and its work!
Advanced chartjs options
Since the current version allows it to add simple json string based options, it is not possible to generate options like:
Using the method optionsRaw(string) its possible to add a the options in raw format:
Passing string format like a json
Or, if you prefer, you can pass a php array format
Examples
1 - Line Chart / Radar Chart:
2 - Bar Chart:
3 - Pie Chart / Doughnut Chart:
OBS:
This README, as well as the package, is in development, but will be constantly updated and I will keep you informed as soon as it is ready for production. Thank you for understanding.
Any questions or suggestions preferably open a issue!
License
LaravelChartJs is open-sourced software licensed under the MIT license.