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.
Please see CONTRIBUTING for details.
The BSD License (BSD). Please see License File for more information.
Web development has never been so fun!