Template:Bar chart/bar

From blackwiki
< Template:Bar chart
Revision as of 17:25, 29 September 2020 by imported>Jonesey95 (fix invalid input to formatnum causing articles to appear in Category:Pages with non-numeric formatnum arguments)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
300,000
Template documentation[view] [edit] [history] [purge]

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

  • {{Bar chart}} – uses this template to generate bar charts.
  • {{Composition bar}} – used for displaying the number of seats held by a political party, or other single statistics.

bs:Šablon:Trakasti grafikon/traka mk:Шаблон:Столбен графикон/столб ur:سانچہ:Bar chart/bar