[dismiss]
On Fanlore, users with accounts can edit pages including user pages, can create pages, and more. Any information you publish on a page or an edit summary will be accessible by the public and to Fanlore personnel. Because Fanlore is a wiki, information published on Fanlore will be publicly available forever, even if edited later. Be mindful when sharing personal information, including your religious or political views, health, racial background, country of origin, sexual identity and/or personal relationships. To learn more, check out our Terms of Service and Privacy Policy. Select "dismiss" to agree to these terms.
Template:Bar chart/bar/doc
< Template:Bar chart | bar
Jump to navigation
Jump to search
File:Edit-copy green.svg | This is a documentation subpage for Template:Bar chart/bar. It contains usage information, categories and other content that is not part of the original template page. |
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 barwidth_units
are the units associated with the width (em, px, or %). The default is em.data
andtotal
are used to determine the width of the bar usingdata/total
to compute a percentage ofwidth
.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.