Highcharts JS widget for Yii2.
The amazing HighCharts JS widget now for Yii2.
The preferred way to install this extension is through composer.
composer require 2amigos/yii2-highcharts-widget:~1.0
"2amigos/yii2-highcharts-widget" : "~1.0"
to the require section of your application's
// on your view <?= \dosamigos\highcharts\HighCharts::widget([ 'clientOptions' => [ 'chart' => [ 'type' => 'bar' ], 'title' => [ 'text' => 'Fruit Consumption' ], 'xAxis' => [ 'categories' => [ 'Apples', 'Bananas', 'Oranges' ] ], 'yAxis' => [ 'title' => [ 'text' => 'Fruit eaten' ] ], 'series' => [ ['name' => 'Jane', 'data' => [1, 0, 4]], ['name' => 'John', 'data' => [5, 7, 3]] ] ] ]); // ...
Please, check the HighCharts site documentation for further information about its configuration options.
We have added a PHP code fixer to standardize our code. It includes Symfony, PSR2 and some contributors rules.
./vendor/bin/php-cs-fixer fix ./src --config .php_cs
Please see CONTRIBUTING for details.
The BSD License (BSD). Please see License File for more information.
Custom Software | Web & Mobile Software Development