dev-master
9999999-dev
MIT
The Requires
- php >=5.6.0
The Development Requires
by Jincheng Zhang
echarts
1.0.0
1.0.0.0
MIT
The Requires
- php >=5.6.0
The Development Requires
by Jincheng Zhang
echarts
Wallogit.com
2017 © Pedro Peláez
当初开发PEcharts 1.0版本时,缺乏良好的设计.所以,最后只是实现了其中的功能,得到自己想要的结果.但是实现的不优美,几乎很难扩展., (*1)
然后,转眼一年过去,最近捡起来Echarts,自己尝试着重写了这个玩意.现在比之前好用一些了., (*2)
重要的是,能够兼容之前的版本.说明之前的思想,过了这么久,自己还是比较认同的., (*3)
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']}]}
MIT
echarts
MIT
echarts