项目作者: 2amigos

项目描述 :
HighCharts Js Widget for Yii2
高级语言: PHP
项目地址: git://github.com/2amigos/yii2-highcharts-widget.git
创建时间: 2014-04-08T18:48:09Z
项目社区:https://github.com/2amigos/yii2-highcharts-widget

开源协议:Other

下载


HighCharts JS Widget for Yii2

Latest Version
Software License
Build Status
Coverage Status
Quality Score
Total Downloads

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

  1. composer require 2amigos/yii2-highcharts-widget:~1.0

or add

  1. "2amigos/yii2-highcharts-widget" : "~1.0"

to the require section of your application’s composer.json file.

Usage

  1. // on your view
  2. <?=
  3. \dosamigos\highcharts\HighCharts::widget([
  4. 'clientOptions' => [
  5. 'chart' => [
  6. 'type' => 'bar'
  7. ],
  8. 'title' => [
  9. 'text' => 'Fruit Consumption'
  10. ],
  11. 'xAxis' => [
  12. 'categories' => [
  13. 'Apples',
  14. 'Bananas',
  15. 'Oranges'
  16. ]
  17. ],
  18. 'yAxis' => [
  19. 'title' => [
  20. 'text' => 'Fruit eaten'
  21. ]
  22. ],
  23. 'series' => [
  24. ['name' => 'Jane', 'data' => [1, 0, 4]],
  25. ['name' => 'John', 'data' => [5, 7, 3]]
  26. ]
  27. ]
  28. ]);
  29. // ...

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.

  1. ./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.

2amigOS!
Custom Software | Web & Mobile Software Development
www.2amigos.us