This is a documentation subpage for Template:Brick chart. It may contain usage information, categories and other content that is not part of the original template page. |
TemplateData for Brick chart
Draws a "brick chart" (square alternative to pie charts) as a rectangular-box chart with brick segments inside, useful for showing percentages, seats in a legislature, etc.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Alignment | thumb | Align graph to left or right of page (floating), centre it, or no alignment option.
| String | optional |
Style | style | Additional CSS for container | String | optional |
Width | width | Width in pixels
| Number | optional |
Total | total | The total number of bricks (defaults to 100)
| Number | optional |
Stride | stride | The number of bricks in each row, defaults to 10.
| Number | optional |
Value 1 | value1 | Values for each brick. Values can be integers, decimals ("2.4"), formulas, or use '+' in mixed number fractions ("3+1/2"). | Unknown | required |
Brick size | brick_size | Value represented by one brick - defaults to one. | Number | optional |
Colour 1 | color1 | CSS colour of each brick, defaults to various colours. E.g. red, blue, #893.
| Unknown | optional |
Value 2 | value2 | no description | Unknown | required |
Colour 2 | color2 | no description
| String | optional |
value3 | value3 | no description | Unknown | optional |
Color 3 | color3 | no description
| Unknown | optional |
value4 | value4 | no description | Unknown | optional |
Color 4 | color4 | no description
| Unknown | optional |
value5 | value5 | no description | Unknown | optional |
Color 5 | color5 | no description
| Unknown | optional |
value6 | value6 | no description | Unknown | optional |
Color 6 | color6 | no description
| Unknown | optional |
value7 | value7 | no description | Unknown | optional |
Color 7 | color7 | no description
| Unknown | optional |
value8 | value8 | no description | Unknown | optional |
Color 8 | color8 | no description
| Unknown | optional |
value9 | value9 | no description | Unknown | optional |
Color 9 | color9 | no description
| Unknown | optional |
Caption | caption | no description | Line | optional |
Legend margin | legend_margin | A CSS margin value to override the default | String | optional |
Label 1 | label1 | Legend label for the first brick. | Line | required |
Unit | unit | Unit to display in the legend, default to % | String | optional |
Label 2 | label2 | no description | Line | suggested |
Label 3 | label3 | no description | Line | suggested |
Label 4 | label4 | no description | Line | suggested |
Label 5 | label5 | no description | Line | suggested |
Label 6 | label6 | no description | Line | suggested |
Label 7 | label7 | no description | Line | suggested |
Label 8 | label8 | no description | Line | suggested |
Label 9 | label9 | no description | Line | suggested |
"Other" label | other | Legend for the leftover space in the graph, defaults to "Other". | Line | optional |