Template:Bar chart/bar
Appearance
300,000
This template can be used to create bars for a horizontal bar chart.
Usage
[change source]{{Bar chart/bar| data | total | width = width | width_units = width_units | color = color }}
widthis a number which determines the maximum width of the barwidth_unitsare the units associated with the width (em, px, or %). The default is em.dataandtotalare used to determine the width of the bar usingdata/totalto compute a percentage ofwidth.datais also used for the label on each bar.coloris used to override the default bar color.
Related templates
[change source]- {{Bar chart}} – uses this template to generate bar charts.