承接 luismarto/phpopenchart 相关项目开发

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

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

luismarto/phpopenchart

最新稳定版本:3.1.3

Composer 安装命令:

composer require luismarto/phpopenchart

包简介

PHP library to draw Column, Bar, Line and Pie Charts

README 文档

README

Phpopenchart was based on Libchart and allows you to create charts using PHP. It's specially useful when you need to create charts on the server-side and so you can't use a front-end library such as Highcharts.

use Phpopenchart\Chart\Column;

$chart = new Column([
    'chart' => [
        'width' => 1000,
        'height' => 300,
    ],
    'title' => [
        'text' => 'Values'
    ],
    'dataset' => [
        'series' => ['Product A', 'Product B', 'Product C'],
        'labels' => ['Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
        'data' => [
            [3296, 4852, 2010, 6004, 5014, 7695],
            [2036, 1816, 687, 1025, 3074, 3651],
            [123, 984, 102, 707, 853, 696],
        ]
    ]
]);

$chart->render();

Documentation & examples

There's an extensive documentation here with all the available options, methods and datasets.

If you're looking for examples check the examples page for all the available options or the /tests/actual.

Installation

Require the package in your composer.json file and update composer, using the following data:

"luismarto/phpopenchart": "3.*"

Roadmap

In a forseable future

  • Improve demo/examples section (display comparison between libchart and phpopenchart)
  • Make this easily integrated with Laravel

License

This library is is based on the original work of Jean-Marc Trémeaux (check the original website). Also used the fork from Alexander Stehlik.

Phpopenchart is distributed under the terms of the GNU GPL v3. This includes everything in the source code distribution except where otherwise stated.

Third Party Content

The following third party software is distributed with Phpopenchart and is provided under other licenses and/or has source available from other locations.

Files in the fonts directory are distributed under their own licence, which is located under the fonts directory.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2017-02-05