jasonroman/flot
Composer 安装命令:
composer require jasonroman/flot
包简介
Jason Roman's PHP Flot Class
关键字:
README 文档
README
This is a class that transforms PHP arrays of series data into a JSON format that Flot can understand. It supports line/bar charts, pie charts, horizontal/vertical orientation, and time series data. It also supports single or multiple series.
To load as a service in a Symfony bundle, see my jasonroman/flot-bundle package.
Usage
// convert to Flot JSON data from PHP arrays use JasonRoman\Flot\Flot; $flot = new Flot; $flotData = $flot->convert($data); $flotData = $flot->convert($data, 'horizontal'); $flotData = $flot->convert($data, 'vertical', $datetime = true); $flotData = $flot->convert($pieData);
See the comments in the class for more examples of the various forms of array $data that can be passed to the convert() function.
统计信息
- 总下载量: 1.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-04-14