Template:Sparkline/doc
This is a documentation subpage for Template:Sparkline. It contains usage information, categories and other content that is not part of the original Template page. |
Example
[edit]
TemplateData
[edit]Create a sparkline graph of at least 2 and up to 24 values; x values should be Unix epoch timestamps, y values should be numbers. Values can be in any order.
Parameter | Description | Type | Status | |
---|---|---|---|---|
x1 | x1 | Time value for one of the points, as a Unix timestamp
| Number | required |
y1 | y1 | Y value at the corresponding time
| Number | required |
x2 | x2 | Time value for one of the points, as a Unix timestamp
| Number | required |
y2 | y2 | Y value at the corresponding time
| Number | required |
x3 | x3 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y3 | y3 | Y value at the corresponding time
| Number | suggested |
x4 | x4 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y4 | y4 | Y value at the corresponding time
| Number | suggested |
x5 | x5 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y5 | y5 | Y value at the corresponding time
| Number | suggested |
x6 | x6 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y6 | y6 | Y value at the corresponding time
| Number | suggested |
x7 | x7 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y7 | y7 | Y value at the corresponding time
| Number | suggested |
x8 | x8 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y8 | y8 | Y value at the corresponding time
| Number | suggested |
x9 | x9 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y9 | y9 | Y value at the corresponding time
| Number | suggested |
x10 | x10 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y10 | y10 | Y value at the corresponding time
| Number | suggested |
x11 | x11 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y11 | y11 | Y value at the corresponding time
| Number | suggested |
x12 | x12 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y12 | y12 | Y value at the corresponding time
| Number | suggested |
x13 | x13 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y13 | y13 | Y value at the corresponding time
| Number | suggested |
x14 | x14 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y14 | y14 | Y value at the corresponding time
| Number | suggested |
x15 | x15 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y15 | y15 | Y value at the corresponding time
| Number | suggested |
x16 | x16 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y16 | y16 | Y value at the corresponding time
| Number | suggested |
x17 | x17 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y17 | y17 | Y value at the corresponding time
| Number | suggested |
x18 | x18 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y18 | y18 | Y value at the corresponding time
| Number | suggested |
x19 | x19 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y19 | y19 | Y value at the corresponding time
| Number | suggested |
x20 | x20 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y20 | y20 | Y value at the corresponding time
| Number | suggested |
x21 | x21 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y21 | y21 | Y value at the corresponding time
| Number | suggested |
x22 | x22 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y22 | y22 | Y value at the corresponding time
| Number | suggested |
x23 | x23 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y23 | y23 | Y value at the corresponding time
| Number | suggested |
x24 | x24 | Time value for one of the points, as a Unix timestamp
| Number | suggested |
y24 | y24 | Y value at the corresponding time
| Number | suggested |
Image Width | width | Width of the image in pixels
| Number | optional |
Image Height | height | Height of the image in pixels
| Unknown | optional |
Line color | color | no description
| String | optional |