定制 misd/highcharts 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

misd/highcharts

Composer 安装命令:

composer require misd/highcharts

包简介

Allows the programmatic creation of Highcharts

README 文档

README

Build Status

This library is currently under development.

Allows the programmatic creation of Highcharts in PHP.

Authors

Requirements

Installation

  1. Add the bundle to your dependencies:

    // composer.json
    
    {
       // ...
       "require": {
           // ...
           "misd/highcharts": "dev-master"
       }
    }
    
  2. Use Composer to download and install the bundle:

    $ php composer.phar update misd/highcharts
    

Usage

Create a chart:

$chart = Chart::factory()
    ->setTitle('Scatter plot with regression line')
    ->addSeries(
        array(
            ScatterSeries::factory()
                ->setName('Observations')
                ->addData(array(1, 1.5, 2.8, 3.5, 3.9, 4.2)),
            LineSeries::factory()
                ->setName('Regression line')
                ->addDataPoint(DataPoint::factory(0, 1.11))
                ->addDataPoint(DataPoint::factory(5, 4.51))
                ->getMarker()->setEnabled(false)->getSeries()
                ->setEnableMouseTracking(false),
        )
    )
;

Then render it:

<?php $renderer = new Renderer(); ?>

<script type="text/javascript">
    $(function () {
        <?php echo $renderer->render($chart); ?>
    });
</script>

<?php echo $renderer->renderContainer($chart); ?>

Reporting an issue or a feature request

Issues and feature requests are tracked in the GitHub issue tracker.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-02-13