Demo:Sparkline

From semantic-mediawiki.org

Bar chart[edit]

Syntax
{{#ask:
 [[Country::Japan]]
 [[Has seismic activity::+]]
 |?Has seismic activity
 |format=sparkline
 |link=all
 |intro=[
 |outro=]
 |headers=show
 |charttype=bar
 |class=demo-center
}}
Result

[

Loading...

]

Line chart using Distribution and threshold[edit]

Syntax
{{#ask:
 [[Has format name::+]]
 |?Has format name
 |format=sparkline
 |limit=250
 |link=all
 |headers=show
 |distribution=1
 |distributionsort=none
 |min=2
 |charttype=line
}}
Result
Loading...