Using SVGGraph
Skip to:
The whole point of SVGGraph is to draw a graph on a web page. SVGGraph has different functions for the alternative ways of adding a graph to a page, and this page covers embedding the graph using a script external to the page.
For directly inserting the graph SVG into the code of the page, visit the SVG in HTML page for instructions.
Embedding the SVG in a page
There are several ways to insert SVG graphics into a page. FireFox, Safari, Chrome, Opera and IE 9 all support SVG natively, though Internet Explorer versions up to 8 require the use of a plugin (such as the one supplied by Adobe).
For options 1-3, I'll assume you have a PHP script called "graph.php" which contains the code to generate the SVG graph that you want to embed.
Option 1: <embed>
The embed tag has been around for years, but has only been
included in the HTML standard with HTML5.
