Template:Graph

From 2009.igem.org

(Difference between revisions)
(First attemp at graph template.)
m (Letting MediaWiki resolve a self-reference.)
Line 10: Line 10:
Please note that any page using this template should also include [[Template:GraphHeader]] (once), this need not be at the beginning of the document.
Please note that any page using this template should also include [[Template:GraphHeader]] (once), this need not be at the beginning of the document.
-
 
{{GraphHeader}}</noinclude>
{{GraphHeader}}</noinclude>

Revision as of 14:22, 24 June 2009

This template lets any user of the Wiki include a graph in a Wiki page much like he/she can include an image. The graph is defined using JSON that describes the graph directly using the properties supported by the [http://docs.dojocampus.org/dojox/charting charting library] in the [http://www.dojotoolkit.org/ Dojo Toolkit].

As an example Team:Groningen/Graphs/Test can be rendered using:

{{graph|Team:Groningen/Graphs/Test}}

Which looks like this:

Loading graph...

Please note that any page using this template should also include Template:GraphHeader (once), this need not be at the beginning of the document.