Download the PHP package fidum/laravel-dashboard-chart-tile without Composer
On this page you can find all versions of the php package fidum/laravel-dashboard-chart-tile. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fidum/laravel-dashboard-chart-tile
More information about fidum/laravel-dashboard-chart-tile
Files in fidum/laravel-dashboard-chart-tile
Package laravel-dashboard-chart-tile
Short Description Generic chart tiles for laravel dashboard
License MIT
Homepage https://github.com/fidum/laravel-dashboard-chart-tile
Informations about the package laravel-dashboard-chart-tile
Laravel Dashboard Charting Tile
Show off your charting skills with this easy to use tile. Supports line, bar, pie, doughnut and many more!
Installation
You can install the package via composer:
Usage
In the dashboard
config file, you can optionally add this configuration in the tiles
key.
This tile uses chart.js
to render the charts with the help of Laravel Charts
package see links to
documentation for both below:
So that you can easily add your datasets and configure your charts exactly how you want them you need to create
a chart class that implements the Fidum\ChartTile\Contracts\ChartFactory
interface.
See chart example below:
In your dashboard view you can use the below component as many times as needed. Pass your chart class reference to the component and that will be used to generate the chart.
Optional properties:
-
chartFilters
optional key value array of settings that is passed to your chartstatic::make
method. Only use this for passing simple valuesstrings
,integers
,arrays
etc. To use this you will have to use@livewire
syntax over the component syntax in order set the array value. -
height
sets the height of the chart, depending on your dashboard layout you may need to adjust this (defaults to100%
). refreshIntervalInSeconds
use this to override the refresh rate of an individual tile (defaults to300
seconds)
Examples
We have provided some chart factory examples to help get you started here. You can use the below dashboard layout to have an instant showcase of these examples:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email :author_email instead of using the issue tracker.
Credits
- All Contributors
License
The MIT License (MIT). Please see License File for more information.