SvgGrapher permit you to create SVG 1.1 graph easily.
BSD License
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the Xml2Pdf nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
You can use the package.xml in the source directory
$ sudo pear install /path/to/svggrapher/package.xml
If you have modify the source code you can generate a new package.xml
$ cd path/to/svggrapher $ php tools/pearReleaser.php
From dor deb package: debian users (or "debian like" like Ubuntu users) can install it using a dot deb package
$ sudo dpkg -i /path/to/svggrapher/SvgGrapher_1.3.deb
If you have modify the source code you can generate a new dot deb package
$ sh /path/to/svggrapher/tools/debianReleaser
download the tar.gz file to install from source code. Extract the content into a directory accessible by your web-server.
Fisrt step with svgGrapher:
Internals functions are a set of tools and utilities, they are load with SvgGraper class instantiation.
SvgGrapher use plugins...
The main purpose of Dataproviders plugins is get the data, but they can be use to modify data, set curves etc.
Defs plugins are used to add 'defs' element in the svg. 'defs' element is a container element for references elements. http://www.w3.org/TR/SVG11/struct.html#DefsElement
Scripts plugins are used to add js script in the document.
Visuals plugins are plugins to define curves renderers. You can add all the curves visuals style than you want.
The plugins are defined by a php file with a function. The file must be named svgGraper.pluginType.pluginKeyword.php, and the function svgGraper_pluginType_pluginKeyword(). eg the visual plugin function for line representation is named svgGrapher_visual_line and is in a file named svgGrapher.visual.line.php in visuals plugins directory.
The plugins are call using PluginManager class. They can access to SvgGrapher using SvgGrapher::singleton() method.
exemple of plugin who insert a js script in the svg:
To use a plugin call the SvgGrapher::getPlugin() method.
Documentation generated on Tue, 23 Oct 2007 11:31:50 +0200 by phpDocumentor 1.4.0