Template:Graph:Lines/doc

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

{	"params": { "tabletype": { "description": "Specifies the type of the table data. \"tab\" (default) uses data namespace on commons, without the data: prefix. \"query\" sends request to wikidata query service.", "type": "string", "default": "tab" },		"table": { "description": "Data page name on Commons, without the Data: prefix. The table should contain xField column, like year or date, and one or more series columns to plot. If tabletype parameter is set to \"query\", this value is the query", "type": "string", "required": true },		"type": { "description": "Type of the x axis - time (e.g. \"2015-10\" or \"2013-03-08), year (integer, but treated as a year), linear (numbers), ordinal (anything)",			"type": "string",			"default": "year",			"suggested": true		},		"xField": {			"description": "Id of the data column that contains values for the X axis. If type=year, xField is also \"year\" by default.",			"type": "string",			"required": true		},		"series": {			"description": "If each line is represented by a separate column of data (or if there is only one column), list of the data columns to show as lines. Must be in quotes, and listed by field IDs if coming from a .tab page: \"field1\", \"field2\", \"field3\".",			"type": "string"		},		"group": {			"description": "If line color depends on just one column, specify that column's ID, instead of the series parameter.",			"type": "string"		},		"value": {			"description": "If line color depends on one column, this parameter should be set to the column which has the values",			"type": "string"		},		"xZero": {			"description": "Force to start or not to start X axis with zero. Can be either true or false",			"type": "string"		},		"yZero": {			"description": "Force to start or not to start Y axis with zero. Can be either true or false",			"type": "string"		},		"xMin": {			"description": "Force X axis to start from this value"		},		"xMax": {			"description": "Force X axis to end with this value"		},		"yMin": {			"description": "Force Y axis to start from this value"		},		"yMax": {			"description": "Force Y axis to end with this value"		},		"title": {			"description": "Title of the whole graph",			"type": "string"		},		"xAxis": {			"description": "Title of the X axis",			"type": "string"		},		"yAxis": {			"description": "Title of the Y axis",			"type": "string"		},		"xGrid": {			"description": "Show grid lines for X axis",			"type": "boolean"		},		"yGrid": {			"description": "Show grid lines for Y axis",			"type": "boolean"		},		"xTicks": {			"description": "How many ticks to show on X axis. 7 by default. '-' value makes it automatic.",			"type": "number"		},		"yTicks": {			"description": "How many ticks to show on Y axis. Auto by default.",			"type": "number"		},		"legend": {			"description": "Title of the legend",			"type": "string"		},		"width": {			"type": "number"		},		"height": {			"type": "number"		},		"colors": {			"label": "Color palette",			"description": "The colors of the areas or bars, specified as Vega defined rangeliteral. This can also be a list like [ \"red\", \"green\" ]",			"example": "\"category10\"",			"type": "string",			"default": "\"category10\""		},		"debug": {			"description": "if set, will show graph as raw JSON",			"type": "string"		}	},	"paramOrder": [		"tabletype",		"table",		"type",		"xField",		"series",		"group",		"value",		"xZero",		"yZero",		"xMin",		"xMax",		"yMin",		"yMax",		"xAxis",		"yAxis",		"xGrid",		"yGrid",		"xTicks",		"yTicks",		"title",		"legend",		"colors",		"width",		"height",		"debug"	],	"description": "This graph draws one or more independent numeric data series as lines. The data must be stored on Commons' Data namespace or come from Wikidata Query Service." }