Template:Bar chart/bar/doc

From blackwiki
< Template:Bar chart‎ | bar
Revision as of 10:05, 16 October 2011 by imported>Kozuch (moved Template:Bar graph/bar/doc to Template:Bar chart/bar/doc)
Jump to navigation Jump to search

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

Usage

{{Bar graph/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