Template:Vchart

From Darkan
Revision as of 22:13, 26 September 2011 by imported>Hofmic (Test to see if I can stop it from making empty cells)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

[view] [edit] [purge] Template documentation

This documentation is transcluded from Template:Vchart/doc.

The Vchart template (also known as Vertical chart or Column chart) is used to display a column chart with a minimum of two columns.

Parameters

{{vchart
| chart-height   = height of the chart (pixels)
| border-colour  = colour of the border (i.e. "blue" or "#0000ff")
| fill-colour    = colour of the filled column (i.e. "black" or "#000000")
| max-value      = maximum value
| axis-label     = label for the Y-axis
| col1-value     = value/data for column #1
| col1-label     = label for column #1
.
.
| col12-value    = value/data for column #12
| col12-label    = label for column #12
}}

Example

{{vchart
| chart-height   = 200
| border-colour  = orange
| fill-colour    = #ffcccc
| max-value      = 500
| axis-label     = Price
| col1-value     = 50
| col1-label     = Item1
| col2-value     = 400
| col2-label     = Item2
| col3-value     = 150
| col3-label     = Item3
| col4-value     = 300
| col4-label     = Item4
| col5-value     = 200
| col5-label     = Item5
}}

produces:

500
250
0
Price
Item1
Item2
Item3
Item4
Item5