2017 © Pedro Peláez
 

library pecharts

image

aaronzjc/pecharts

  • Monday, January 16, 2017
  • by Zhang Jincheng
  • Repository
  • 1 Watchers
  • 2 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

说明

当初开发PEcharts 1.0版本时,缺乏良好的设计.所以,最后只是实现了其中的功能,得到自己想要的结果.但是实现的不优美,几乎很难扩展., (*1)

然后,转眼一年过去,最近捡起来Echarts,自己尝试着重写了这个玩意.现在比之前好用一些了., (*2)

重要的是,能够兼容之前的版本.说明之前的思想,过了这么久,自己还是比较认同的., (*3)

设计说明

目录结果

  • 根目录
    • modules/
      • Builder.php
      • Handler.php
      • Title.php
      • ...
    • Demo.php
    • Option.php

安装

composer require aaronzjc/pecharts

使用

$option = new \PEcharts\Option();
$arr = $option->init(function($option){
    $option->title = ['text' => '标题'];
    $option->series(function($series){
        $series->type = "line";
        $series->data = [1,2,3,4,5];
    }, true)->series(funciton($series){
        $series->type = "bar";
        $series->data = ['a','b','c'];
    }, true);
})->getJson();

// $arr = {'title':{'text':'标题'},'series':[{'type':'line','data':[1,2,3,4,5]},{'type':'bar','data':['a','b','c']}]}

The Versions

16/01 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Jincheng Zhang

echarts

16/01 2017

1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Jincheng Zhang

echarts