totara/svggraph
最新稳定版本:3.20.2
Composer 安装命令:
composer require totara/svggraph
包简介
Totara fork for SVG graph - Generates SVG graphs
README 文档
README
SVGGraph generates a variety of graphs in SVG format. For examples, documentation, etc. please see: http://www.goat1000.com/svggraph.php
This library is released under LGPL-3.0.
Example usage:
<?php // if you are using composer you can skip this require 'svggraph/autoloader.php'; // set some options $options = [ 'graph_title' => 'A simple graph', 'bar_space' => 20, ]; // set up an array of values $values = [ 100, 200, 140, 130, 160, 150 ]; // use full namespace to get SVGGraph instance $graph = new Goat1000\SVGGraph\SVGGraph(600, 400, $options); // assign the values $graph->values($values); // render a bar graph $graph->render('BarGraph');
统计信息
- 总下载量: 1.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-only
- 更新时间: 2025-08-25