Jump to content

Extension:Chart/Especificación

From mediawiki.org
This page is a translated version of the page Extension:Chart/Specification and the translation is 100% complete.

Esta página describe los valores aceptados al definir un gráfico.

Propiedades de alto nivel
Campo Tipo Notas
version number De momento, no hay necesidad de modificar el valor por defecto.
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 El nombre de la página .tab que se visualizará. Esta página debe estar en el espacio de nombres Data y el valor debe omitir el prefijo.
type string Currently accepts the values line or pie or bar or area. See Extensión:Chart .
xAxis Axis See below
yAxis Axis See below
title LocalizableString See below
subtitle LocalizableString
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 .
Axis properties
Field Type Notes
title LocalizableString See below
format Boolean When enabled numbers on axis will be abbreviated, e.g. 1,000,000 becomes 1M

LocalizableString

Used to localize the data, or in simpler terms store the translations for all headings and captions. It is a way to store localized strings in a JSON structure. An object of key–value pairs (or name–value pairs) where key is the identifier for the string, the language code in this case, and the value is the localized string for that language.

Example:

{
    "en": "Dog",
    "fr": "Chien"
}

See also