LaravelPackages.net
Acme Inc.
Toggle sidebar
efficioconsulting/laravel-highcharts

This is a package for generating a Highchart JSON config.

21
0
1.0.0
About efficioconsulting/laravel-highcharts

efficioconsulting/laravel-highcharts is a Laravel package for this is a package for generating a highchart json config.. It currently has 0 GitHub stars and 21 downloads on Packagist (latest version 1.0.0). Install it with composer require efficioconsulting/laravel-highcharts. Discover more Laravel packages by efficioconsulting or browse all Laravel packages to compare alternatives.

Last updated

laravel-highcharts

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 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',

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();
Comments