SVGGraph
SVGGraph

Charts im SVG-Format mit der PHP-Bibliothek SVGGraph

Zunächst einige Grundbeispiele:

Einbindung über externe Schnittstelle und als img-Tag


Einbindung über externe Schnittstelle und als object-Tag


Einbindung über moziloCMS-PHP-Plugin Schnittstelle

{PHP|
// nur 1 Mal erforderlich
require_once '/libs/SVGGraph/SVGGraph.php';
$graph = new SVGGraph(400, 300);
$graph->Values(10, 14, 6, 3, 20, 14, 16);
echo $graph->Fetch('BarGraph', false);
// nur 1 Mal erforderlich
// echo $graph->FetchJavascript();
}

Einbindung über moziloCMS-PHP-Plugin Schnittstelle

{PHP|
// nur 1 Mal erforderlich
// require_once '/libs/SVGGraph/SVGGraph.php';
$graph = new SVGGraph(400, 300);
$graph->Values(10, 14, 6, 3, 20, 14, 16);
echo $graph->Fetch('Bar3DGraph', false);
// nur 1 Mal erforderlich
echo $graph->FetchJavascript();
}