rickselby / svglapchart
v0.4
2016-05-26 13:09 UTC
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2024-09-10 23:15:25 UTC
README
使用 PHP 生成 SVG 弧形图表。
示例
// Create the chart $chart = new chart(); // Set information for each driver foreach($drivers AS $driver) { $chart->setDriver($driver['name'], $driver['colour'], $driver['positions']); } // Set how many drivers were lapped on each lap $chart->setLapped($lapped); // Get the SVG echo $chart->generate();