Template:Graph:Horizontal bars/doc
![]() | This is a documentation subpage for Template:Graph:Horizontal bars. It contains usage information, categories and other content that is not part of the original template page. |
This graph's main version resides at Template:Graph:Stacked. Please make or suggest all the changes there, and copy it everywhere else (until the copying is automated)
{{Graph:Horizontal bars | table=Wikimedia/CEE Spring/Statistics/MMXVI/Per country sums (general).tab |
---|
![]() See or edit source data. |
This graph draws one or more independent numeric data series as lines. The data must be stored on Commons' Data namespace.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Table | table | 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 | String | required |
Type | type | 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)
| String | suggested |
XField | xField | Id of the data column that contains values for the X axis. If type=year, xField is also "year" by default. | String | required |
Series | series | List of the data columns to show as lines. Must be listed by field IDs: "field1", "field2", "field3". | String | required |
XZero | xZero | Force to start or not to start X axis with zero. Can be either true or false | String | optional |
YZero | yZero | Force to start or not to start Y axis with zero. Can be either true or false | String | optional |
XMin | xMin | Force X axis to start from this value | Unknown | optional |
XMax | xMax | Force X axis to end with this value | Unknown | optional |
YMin | yMin | Force Y axis to start from this value | Unknown | optional |
YMax | yMax | Force Y axis to end with this value | Unknown | optional |
Title | title | Title of the whole graph | String | optional |
XAxis | xAxis | Title of the X axis | String | optional |
YAxis | yAxis | Title of the Y axis | String | optional |
XGrid | xGrid | Show grid lines for X axis | Boolean | optional |
YGrid | yGrid | Show grid lines for Y axis | Boolean | optional |
Legend | legend | Title of the legend | String | optional |
Width | width | no description | Number | optional |
Height | height | no description | Number | optional |
Debug | debug | if set, will show graph as raw JSON | String | optional |
Edit parameter translations