Nodyn:Graph:Population history/doc
Dyma is-ddalen dogfennaeth ar gyfer Nodyn:Graph:Population history. Mae'n cynnwys gwybodaeth defnydd, categorïau, dolenni rhyngiaith a chynnwys eraill sydd ddim yn rhan o nodyn dudalen wreiddiol. |
Uses Lua: |
This template uses TemplateStyles: |
Mae prif ffynhonnell y graff yma ar mediawiki Template:Graph:Population_history. Yn y fan honno mae golygu hwn!
Mae'r data'n dod o Wicidata, fel arfer, ond gall hefyd ddod o fannau eraill.
{{Graph:Population history|Q84}} Hanes poblogaeth Cymru (data o Wicidata) |
---|
|
{{Graph:Population history | table=Wikidata/St.Petersburg.tab |
|
Inserts a graph with the population history for the given city.
Paramedr | Disgrifiad | Math | Statws | |
---|---|---|---|---|
City Wikidata ID | 1 | Wikidata ID of the city or region
| Llinyn | dewisol |
Title of the data page on Commons | table | Data page name on Commons, without the Data: prefix. The table must contain "year" and "population" columns. | Llinyn | dewisol |
Raw values for this graph | values | Supply all values as a list of JSON objects: {"year":1980, "population":1000}, {"year":1984, "population":1045}, ... | Anhysbys | dewisol |
Title of the annotations data page on Commons | atable | Data page name on Commons, without the Data: prefix. The table must contain "year" column, and optional "text" and "color" columns. | Llinyn | dewisol |
Raw annotation values | avalues | Supply all annotation values as a list of JSON objects: {"year":1980, "text":"Big event"}, ... | Anhysbys | dewisol |
Filter expression | filter | Optionally, filter the data with an expression, e.g. datum.year >= 1900 && datum.year < 2000 | Anhysbys | dewisol |
Graph color | color | Shade with which to highlight the data in the chart
| Llinyn | dewisol |
Interpolate | interpolate | How data points should be connected, e.g. linear, step-before, step-after, basis, basis-open, cardinal, cardinal-open, monotone
| Llinyn | dewisol |
Graph scale | scale | Scaling could be one of these: linear, log, pow, sqrt, quantile, quantize, and threshold
| Llinyn | dewisol |
Maximum Y value axis | max | This optional value might be useful to align multiple graphs side-by-side
| Rhif | dewisol |
Width | width | Width for the chart in pixels, if different from the default.
| Rhif | dewisol |
Height | height | Height for the chart in pixels, if different from the default.
| Rhif | dewisol |