goat1000 / svggraph
Generates SVG graphs
Installs: 591 212
Dependents: 5
Suggesters: 0
Security: 0
Stars: 120
Watchers: 9
Forks: 30
Open Issues: 37
- dev-master
- 3.20.1
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.1
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.8.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.0
- 3.0.1
- 3.0.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.0
- 2.24.1
- 2.24.0
- 2.23.1
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.1
- 2.20.0
- 2.19.1
- 2.19.1-beta
- 2.19.0
- 2.19.0-beta.2
- 2.19.0-beta
- 2.19.0-alpha
This package is auto-updated.
Last update: 2024-10-23 12:41:01 UTC
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');