mauro-moreno / laravel-highcharts
This is a package for generating a Highchart JSON config.
Installs: 3 841
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 4
Forks: 10
Open Issues: 0
pkg:composer/mauro-moreno/laravel-highcharts
Requires
- php: >=5.5
- illuminate/support: 4.*|5.*
- zendframework/zend-json: ~2.1.2
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2025-10-29 01:34:13 UTC
README
This is a package for generating a Highchart JSON config.
Based in PHP Highcharts.
Installation
Run the following command and provide the latest stable version (e.g v2.4.15) :
composer require mauro-moreno/laravel-highcharts
or add the following to your composer.json file :
"mauro-moreno/laravel-highcharts": "^1.0.0"
Then register this service provider with Laravel :
'providers' => [ ... Aivo\Highchart\HighchartServiceProvider::class, ... ]
Usage
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();