Template:Bar chart/bar/doc
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
< Template:Bar chart | bar
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[edit source]
{{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.