Template:Graph
From 2009.igem.org
(Difference between revisions)
m (Link to JSON standard.) |
(Mentioned Google Docs.) |
||
Line 1: | Line 1: | ||
- | <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 [http://www.json.org/ 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]. | + | <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 [http://www.json.org/ 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]. It also includes a datasource that should point to a (publicly accessible) [http://docs.google.com/ Google Docs] spreadsheet. |
As an example [[Team:Groningen/Graphs/Test]] can be rendered using: | As an example [[Team:Groningen/Graphs/Test]] can be rendered using: |
Revision as of 14:58, 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 [http://www.json.org/ 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]. It also includes a datasource that should point to a (publicly accessible) [http://docs.google.com/ Google Docs] spreadsheet.
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.