Template:Vchart/doc

From Darkan
Revision as of 23:05, 9 January 2010 by imported>Iiii I I I
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Documentation This is a documentation subpage for Template:Vchart.
It contains usage information, categories, and other content that is not part of the original template page.

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