Recommend this page to a friend! |
Download |
Info | Documentation | Demos | Screenshots | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 48 | All time: 10,739 This week: 455 |
Version | License | PHP version | Categories | |||
larapex-charts 1.0.4 | Custom (specified... | 7.0 | PHP 5, Graphics |
Description | Author | ||||||||||||||||||||||
This package can be used to display charts on a page using APEXCharts library. |
|
A Laravel wrapper for apex charts library.
Use composer.
composer require arielmejiadev/larapex-charts
In your controller add:
$chart = LarapexChart::setTitle('Posts')
->setDataset([150, 120])
->setLabels(['Published', 'No Published']);
Remember to import the Facade to your controller with
use ArielMejiaDev\LarapexCharts\Facades\LarapexChart
Or importing the LarapexChart class:
use ArielMejiaDev\LarapexCharts\LarapexChart;
Then in your view (Blade file) add:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Chart Sample</title>
</head>
<body>
{!! $chart->container() !!}
<script src="{{ $chart->cdn() }}"></script>
{{ $chart->script() }}
</body>
</html>
$chart = LarapexChart::setType('area')
->setTitle('Total Users Monthly')
->setSubtitle('From January to March')
->setXAxis([
'Jan', 'Feb', 'Mar'
])
->setDataset([
[
'name' => 'Active Users',
'data' => [250, 700, 1200]
]
]);
You can create a variety of charts including: Line, Area, Bar, Horizantal Bar, Heatmap, pie, donut and Radialbar.
Check the documentation on: Larapex Chart Docs
The author Ariel Mejia Dev.
Screenshots (1) | ||
Files (23) |
File | Role | Description | ||
---|---|---|---|---|
.idea (7 files) | ||||
config (1 file) | ||||
public (1 file) | ||||
resources (1 directory) | ||||
src (2 files, 1 directory) | ||||
tests (1 file, 2 directories) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE.md | Lic. | License text | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (23) | / | .idea |
File | Role | Description |
---|---|---|
composerJson.xml | Data | Auxiliary data |
larapex-charts.iml | Data | Auxiliary data |
misc.xml | Data | Auxiliary data |
modules.xml | Data | Auxiliary data |
php-test-framework.xml | Data | Auxiliary data |
php.xml | Data | Auxiliary data |
vcs.xml | Data | Auxiliary data |
Files (23) | / | resources | / | views | / | chart |
File | Role | Description |
---|---|---|
container.blade.php | Aux. | Auxiliary script |
script-with-stroke.blade.php | Aux. | Auxiliary script |
script.blade.php | Aux. | Auxiliary script |
Files (23) | / | src |
File | Role | Description | ||
---|---|---|---|---|
Facades (1 file) | ||||
LarapexChart.php | Class | Class source | ||
LarapexChartsServiceProvider.php | Class | Class source |
Files (23) | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Features (1 file) | ||||
Unit (1 file) | ||||
TestCase.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
95% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.