Package Data | |
---|---|
Maintainer Username: | rad-mira-labs |
Maintainer Contact: | mmoreno@aivo.co (Mauro Moreno) |
Package Create Date: | 2016-01-07 |
Package Last Update: | 2016-01-07 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-24 03:01:02 |
Package Statistics | |
---|---|
Total Downloads: | 21 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This is a package for generating a Highchart JSON config.
Based in PHP Highcharts.
Run the following command and provide the latest stable version (e.g v1.0.0) :
composer require efficioconsulting/laravel-highcharts
or add the following to your composer.json
file :
"efficioconsulting/laravel-highcharts": "1.0.0"
Then register this service provider with Laravel :
'Aivo\Highchart\HighchartServiceProvider',
Create a chart:
$chart = App::make('highchart')
->setTitle('Scatter plot with regression line')
->addSeries(
array(
ScatterSeries::factory()
->setName('Observations')
->addData(array(1, 1.5, 2.8, 3.5, 3.9, 4.2)),
LineSeries::factory()
->setName('Regression line')
->addDataPoint(DataPoint::factory(0, 1.11))
->addDataPoint(DataPoint::factory(5, 4.51))
->getMarker()->setEnabled(false)->getSeries()
->setEnableMouseTracking(false),
)
)
;
$chart->render();