Template:Graph

From 2009.igem.org

(Difference between revisions)
(Template:Graph moved to Template:GraphHeader: Made a mistake in naming it.)
(First attemp at graph template.)
Line 1: Line 1:
-
#REDIRECT [[Template:GraphHeader]]
+
<includeonly><div class="graph">Loading [[{{{1}}}|graph]]...</div></includeonly><noinclude>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:
 +
 
 +
<pre>{{graph|Team:Groningen/Graphs/Test}}</pre>
 +
 
 +
Which looks like this:
 +
 
 +
{{graph|Team:Groningen/Graphs/Test}}
 +
 
 +
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>

Revision as of 14:21, 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.