Accueil > Programmation > Liste des projets > SGNGD

Programmation

SvgGd is Not GD: SVG Charts for PHP



capturecapture




Description:

SGNGD is a PHP library to help you for generating  SVG charts.
Based-on SVG technology, charts are more efficient. With few code lines, you can create many relevant charts such as:

  • Pie Chart

  • Bar Chart

  • Horizontal Bar chart

  • Kiviat Chart

  • Point Cloud Chart

  • Mathematical function plotter

This is an embedded example:

kiviat

Installation:

Extract the archive in a directory of your web site.

How to use: (Quick Start)

-Open a new php file.
-Include SGNGD: require_once( path_to_SGNGD/Chart.php );
-Make a new instance of which chart you want:PieChart or BarChart (others are coming soon). $class = new BarChart();
-Add items by calling $class->AddData( name ,value);
-Call $class->compute().
-Define the type of page by call header: header('Content-Type: image/svg xml');
and display the chart by calling echo $class->display();
You can manage colors of your chart, the size and few other things.
For more details, take a look to the user manual.

Auteurs :

Renaud GUEZENNEC

Download:

Source: SGNGD.tar.gz (Cross-platform) [66 hits]
Manuel: SGNGD-usermanual.pdf (Cross-platform) [65 hits]
Autre: example.svg (Cross-platform) [76 hits]