Difference between revisions of "Template:Bar chart/bar/doc"

From blackwiki
Jump to navigation Jump to search
imported>Edinwiki
imported>Edinwiki
m
Line 17: Line 17:
 
<includeonly>
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 +
[[bs:Šablon:Trakasti grafikon/traka]]
 
[[mk:Шаблон:Столбен графикон/столб]]
 
[[mk:Шаблон:Столбен графикон/столб]]
[[bs:Šablon:Trakasti grafikon/traka]]
 
 
</includeonly>
 
</includeonly>

Revision as of 17:47, 10 December 2012

This template can be used to create bars for a horizontal bar chart.

Usage

{{Bar chart/bar| data | total | width = width | width_units = width_units | color = color }}
  • width is a number which determines the maximum width of the bar
  • width_units are the units associated with the width (em, px, or %). The default is em.
  • data and total are used to determine the width of the bar using data/total to compute a percentage of width.
  • data is also used for the label on each bar.
  • color is used to override the default bar color.

See also