承接 khotim/yii2-highcharts 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

khotim/yii2-highcharts

Composer 安装命令:

composer require khotim/yii2-highcharts

包简介

Highcharts extension for the Yii framework

README 文档

README

Yii2 wrapper for Highcharts library. It supports rendering Highcharts, Highstock, and Highmaps.

Latest Stable Version License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist khotim/yii2-highcharts "*"

or add

"khotim/yii2-highcharts": "*"

to the require section of your composer.json file.

Usage

Insert the following code into a view file (using this sample).

<?= \khotim\highcharts\Highcharts::widget([
    'chartType' => \khotim\highcharts\Highcharts::TYPE_HIGHCHARTS,
    'options' => [
        'id' => 'myChart'
    ],
   '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' =>'Production',
                'data' => [5, 7, 3]
            ]
        ]
    ]
]) ?>

Constants

Constant   Value   Description
TYPE_HIGHCHARTS   1   Chart type Highcharts.
TYPE_HIGHSTOCK   2   Chart type Highstock.
TYPE_HIGHMAPS   3   Chart type Highmaps.

Public Properties

Property   Type   Description
$chartType   integer   Specifies type of chart to be rendered. Defaults to self::TYPE_HIGHCHARTS.
$options   array   The HTML attributes for the widget container tag. The "tag" element specifies the tag name of the container element and defaults to "div".
$clientOptions   array   The options for the underlying Highcharts library. Refers to this page for more information.

统计信息

  • 总下载量: 20
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固