2017 © Pedro Peláez
 

library chart

Chart service for Highcharts

image

energieproduction/chart

Chart service for Highcharts

  • Saturday, September 16, 2017
  • by DeGraciaMathieu
  • Repository
  • 1 Watchers
  • 5 Stars
  • 115 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 17 % Grown

The README.md

Codacy Badge Scrutinizer Code Quality Build For Laravel Latest Version on Packagist Total Downloads, (*1)

EnergieProduction/Chart

Chart service for Highcharts on Laravel 5, (*2)

Installation

Run in console below command to download package to your project:, (*3)

composer require energieproduction/chart

Configuration

For Laravel 5

In /config/app.php add ChartServiceProvider:, (*4)

EnergieProduction\Chart\ChartServiceProvider::class,

Do not forget to use the scripts from Highcharts on the pages that contains a chart, (*5)

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

Usage

In progress..., (*6)

Examples

$chart = app('chart');

$chart->pushSubset('title', function($title){
    $title->pushCriteria(new Criterias\Text('Solar Employment Growth by Sector, 2010-2016'));
});

$chart->pushSubset('subtitle', function($subtitle){
    $subtitle->pushCriteria(new Criterias\Text('Source: thesolarfoundation.com'));
});

$chart->pushSubset('yAxis.title', function($title){
    $title->pushCriteria(new Criterias\Text('Number of Employees'));
});

$chart->pushSubset('legend', function($legend){
    $legend->pushCriteria(new Criterias\Layout('vertical'));
    $legend->pushCriteria(new Criterias\Align('right'));
    $legend->pushCriteria(new Criterias\VerticalAlign('middle'));
});

$chart->pushSubset('plotOptions.series', function($plotOptions){
    $plotOptions->pushCriteria(new Criterias\PointStart(2010));
});

$chart->pushSubset('series', function($series){
    $series->pushCriteria(new Criterias\Name('Installation'));
    $series->pushCriteria(new Criterias\Data([43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]));
});

$chartSolarEmployment = $chart->render();







Demo, (*7)

The Versions

16/09 2017

dev-master

9999999-dev https://github.com/energieproduction/chart

Chart service for Highcharts

  Sources   Download

MIT

The Requires

 

The Development Requires

by De Gracia Mathieu

laravel chart highcharts

01/09 2017

v0.1

0.1.0.0 https://github.com/energieproduction/chart

Chart service for Highcharts

  Sources   Download

MIT

The Requires

 

The Development Requires

by De Gracia Mathieu

laravel chart highcharts

31/05 2017

v2.1.2

2.1.2.0 https://github.com/energieproduction/chart

Chart service for Highcharts

  Sources   Download

MIT

The Requires

 

by De Gracia Mathieu

28/05 2017

v2.1.1

2.1.1.0 https://github.com/energieproduction/chart

Chart service for Highcharts

  Sources   Download

MIT

The Requires

 

by De Gracia Mathieu

28/05 2017

v2.1.0

2.1.0.0 https://github.com/energieproduction/chart

Chart service for Highcharts

  Sources   Download

MIT

The Requires

 

by De Gracia Mathieu