Mal:Graph:Folketall/dok

Fra Wikipedia, den frie encyklopedi

This graph's main version resides at mediawiki Template:Graph:Population_history. Please make all the changes there and copy it everywhere else (until the copying is automated)

{{Graph:Folketall|Q84}}
Show London's population history from Wikidata
{{Graph:Folketall

| table=Wikidata/St.Petersburg.tab
| atable=Original/St.Petersburg population annotations.tab}}
Show population of St.Petersburg from the table on Commons, with annotations

Inserts a graph with the population history for the given city.

Malparametre

Denne malen foretrekker at parametrene blokk-formateres (én parameter per linje).

ParameterBeskrivelseTypeStatus
City Wikidata ID1

Wikidata ID of the city or region

Standard
Q84
Strengvalgfri
Title of the data page on Commonstable

Data page name on Commons, without the Data: prefix. The table must contain "year" and "population" columns.

Strengvalgfri
Raw values for this graphvalues

Supply all values as a list of JSON objects: {"year":1980, "population":1000}, {"year":1984, "population":1045}, ...

Ukjentvalgfri
Title of the annotations data page on Commonsatable

Data page name on Commons, without the Data: prefix. The table must contain "year" column, and optional "text" and "color" columns.

Strengvalgfri
Raw annotation valuesavalues

Supply all annotation values as a list of JSON objects: {"year":1980, "text":"Big event"}, ...

Ukjentvalgfri
Filter expressionfilter

Optionally, filter the data with an expression, e.g. datum.year >= 1900 && datum.year < 2000

Ukjentvalgfri
Graph colorcolor

Shade with which to highlight the data in the chart

Standard
#00f
Eksempel
#f00
Strengvalgfri
Interpolateinterpolate

How data points should be connected, e.g. linear, step-before, step-after, basis, basis-open, cardinal, cardinal-open, monotone

Standard
monotone
Eksempel
linear
Strengvalgfri
Graph scalescale

Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold

Standard
linear
Eksempel
log
Strengvalgfri
Maximum Y value axismax

This optional value might be useful to align multiple graphs side-by-side

Standard
Automatically scaled to the data.
Eksempel
10000
Tallvalgfri
Widthwidth

Width for the chart in pixels, if different from the default.

Standard
400
Tallvalgfri
Heightheight

Height for the chart in pixels, if different from the default.

Standard
200
Tallvalgfri