2amigos / yii2-highcharts-widget
Highcharts JS widget for Yii2.
Installs: 201 034
Dependents: 1
Suggesters: 0
Security: 0
Stars: 42
Watchers: 20
Forks: 13
Open Issues: 3
Type:yii2-extension
Requires
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
README
The amazing HighCharts JS widget now for Yii2.
Highcharts is one of the best HTML5/Javascript charting libraries on the web. Highcharts JS is free for a non-commercial project but not if you are developing a product that you are going to make money with.
Visit HighCharts site in order to get more information about the different options of this plugin and its license pricing.
Installation
The preferred way to install this extension is through composer.
Either run
composer require 2amigos/yii2-highcharts-widget:~1.0
or add
"2amigos/yii2-highcharts-widget" : "~1.0"
to the require section of your application's composer.json
file.
Usage
// 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]]
]
]
]);
// ...
Further Information
Please, check the HighCharts site documentation for further information about its configuration options.
Using code fixer
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
Contributing
Please see CONTRIBUTING for details.
Credits
License
The BSD License (BSD). Please see License File for more information.
Custom Software | Web & Mobile Software Development
www.2amigos.us