Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Bar log/doc

From Wikipedia, the free encyclopedia

For use with {{Bar box}}.

Usage

[edit]

{{Bar log|log base|row label|colour|value|value suffix|optional value label}}

Identical to {{Bar pixel}}, except the width is calculated as logbase(value)× 30. Default base is 2, which makes a regular sidebar sized graph for values <100. Increase the base to handle larger numbers and make the bars shorter. As with {{Bar pixel}}, when value + value_suffix = optional_value_label, they display the same:

Examples

[edit]
{{Bar box
|float=right
|title=Quantity of stuff
|titlebar=#DDD
|left1=kinds of stuff
|right2=pcs.
|width=400px
|bars=
{{bar log|10|Foobar|red|33|,213}}
{{bar log|10|Barfoo|green|123|,123}}
{{bar log|10|Bazbar|blue|910|,121}}
{{bar log|10|Foobaz|orange|2||1,854}}
|caption=Some stuff displayed on a log scale.
}}
Quantity of stuff
kinds of stuff pcs.
Foobar
33,213
Barfoo
123,123
Bazbar
910,121
Foobaz
1,854
Some stuff displayed on a log scale.