Template:Bar chart/testcases
Jump to navigation
Jump to search
Contents
Live template sans params
Country | Population |
---|---|
![]() |
3,000
|
![]() |
2,500
|
![]() |
1,700
|
![]() |
1,500
|
![]() |
1,500
|
![]() |
1,200
|
![]() |
1,000
|
![]() |
900
|
![]() |
700
|
![]() |
600
|
![]() |
600
|
![]() |
500
|
![]() |
500
|
![]() |
500
|
Live with bar_width param only
- bar_width = 15
Country | Population |
---|---|
![]() |
3,000
|
![]() |
2,500
|
![]() |
1,700
|
![]() |
1,500
|
![]() |
1,500
|
![]() |
1,200
|
![]() |
1,000
|
![]() |
900
|
![]() |
700
|
![]() |
600
|
![]() |
600
|
![]() |
500
|
![]() |
500
|
![]() |
500
|
Live with two params
- table_width = 30
- bar_width = 15
Country | Population |
---|---|
![]() |
3,000
|
![]() |
2,500
|
![]() |
1,700
|
![]() |
1,500
|
![]() |
1,500
|
![]() |
1,200
|
![]() |
1,000
|
![]() |
900
|
![]() |
700
|
![]() |
600
|
![]() |
600
|
![]() |
500
|
![]() |
500
|
![]() |
500
|
Sandbox
- Sandbox bar_width params set to 15em
Country | |
---|---|
![]() | <graph>{"scales":[{"domain":{"data":"table","field":"v"},"name":"x","range":"width"},{"domain":{"data":"table","field":"t"},"type":"ordinal","name":"y","range":"height"}],"version":2,"marks":[{"type":"rect","properties":{"enter":{"y":{"scale":"y","field":"t"},"x":{"scale":"x","value":0},"x2":{"scale":"x","field":"v"},"height":{"scale":"y","band":true,"offset":-1,"strokeWidth":22}},"update":{"fill":{"b":{"value":242},"g":{"value":223},"r":{"value":206}}}},"from":{"data":"table"}},{"type":"text","properties":{"enter":{"baseline":{"value":"middle"},"align":{"value":"center"},"text":{"field":"e"},"y":{"scale":"y","offset":6,"field":"t"},"x":{"scale":"x","value":0},"dx":{"scale":"x","field":"v"},"angle":{"value":0},"fontSize":{"value":14},"fill":{"value":"black"}}},"from":{"data":"table"}}],"height":330,"autosize":{"type":"fit"},"data":[{"name":"table","values":[{"e":"3,000 ","t":"![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() | |
Single data column
Two data columns
Two data columns with total
Many data columns with total
Individual bar color (future feature)
Rule | Word counts |
---|---|
Data 1 test | 20
|
G2 | 0
|
G3 | 0
|
G4 | 9
|
G5 | 1
|
G6 | 4
|
G7 | 3
|
G8 | 3
|
G9 | 0
|
G10 | 3
|
G11 | 5
|
G12 | 3
|
G13 | 124
|
G14 | 17
|
Sortable (future feature)
![]() | Not implemented yet. |
Rule | Word counts |
---|---|
G1 | 0
|
G2 | 0
|
G3 | 0
|
G4 | 9
|
G5 | 1
|
G6 | 4
|
G7 | 3
|
G8 | 3
|
G9 | 0
|
G10 | 3
|
G11 | 5
|
G12 | 3
|
G13 | 124
|
G14 | 17
|