michaeldrennen / highcharts
A PHP library to easily make Highcharts for your site.
Installs: 3 919
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: ^7.2|^8.0
- ext-json: *
Requires (Dev)
- phpunit/dbunit: ^2.0|^4.0
This package is auto-updated.
Last update: 2024-10-20 14:41:11 UTC
README
A PHP library that helps produce Highcharts graphs.
This library is functional, but needs some work before I release a v1.0
Breaking Change - 2019-05-15
The latest release includes a breaking change to the library that now allows users to include "global" Highcharts options.
// These will be applied to every chart on this page. $globalOptions = [ 'lang' => [ 'thousandsSep' => ",", ], ]; $localOptions = [ 'title' => ['text' => "My First Chart"], 'subtitle' => ['text' => "It needs data"], 'yAxis' => [ [ 'title' => [ 'text' => "Scores" ], 'type' => 'linear', 'floor' => 0, 'startOnTick' => TRUE, ] ] ]; $chart = Highchart::make( 'highstock', 400, '100%' ) ->setGlobalOptions($globalOptions) ->setLocalOptions( $localOptions );