Template:Data bars/averages/column

From Fanlore
Jump to navigation Jump to search


This sub-template handles one "column" of data (zero and positive numbers only) to produce a bar for display inside a barchart table.

No more than eight numbers are accepted as unnamed parameters
Colors are named color1, color2, color3, and so on, up to eight colors.
Labels are named label1, label2, label3, and so on, up to eight labels.
A scale number may be specified. If so, the bar size in pixels becomes scale times data.

The template call must be enclosed within a table.

Examples:
Default scale = 1<syntaxhighlight lang="wikitext">
164
Cherries
Bananas
Apples
Berries
</syntaxhighlight>
164
Cherries
Bananas
Apples
Berries
Specified scale = 0.001 <syntaxhighlight lang="wikitext">
164000
Cherries
Bananas
Apples
Berries
</syntaxhighlight>
164000
Cherries
Bananas
Apples
Berries