Extension:Chart/Specification
This page describes the accepted values when format of a chart specification.
Field | Type | Notes |
---|---|---|
version | number | No need to modify the default at the current time. |
license | string | Parameter "license" must be one of the valid license codes, for example CC0-1.0, CC-BY-1.0, CC-BY-2.0, CC-BY-2.5, CC-BY-3.0, CC-BY-4.0, CC-BY-4.0+, CC-BY-SA-1.0, CC-BY-SA-2.0, CC-BY-SA-2.5, CC-BY-SA-3.0, CC-BY-SA-4.0, CC-BY-SA-4.0+, ODbL-1.0, dl-de-zero-2.0, dl-de-by-1.0, dl-de-by-2.0, GeoNutzV |
source | string | The name of the tab page to render. The page must be in the Data namespace and omit the namespace prefix. |
type | string | Currently accepts the values line or pie or bar or area. See Extension:Chart#Types_of_chart. |
xAxis | Axis | See below |
yAxis | Axis | See below |
title | LocalizableString | See below |
mediawikiCategories | array of strings | array of categories the chart should be added to |
transform | LuaTransform | Advanced: setup to run the data set through a Lua code module, see /Transforms |
Field | Type | Notes |
---|---|---|
title | LocalizableString | See below |
format | Boolean | When enabled numbers on axis will be abbrievated e.g. 1,000,000 becomes 1M |
LocalizableString
An object of key value pairs where key is the language code and value is the localized string for that language.
Example:
{
"en": "Dog",
"fr": "Chien"
}