Template:Sparkline

{ "version": 2, "width": 100, "height": 25, "data": [ {     "name": "data", "values": [ { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": }, { "measure": "line", "time":, "value": } ]   }  ],  "scales": [ {     "name": "x", "type": "time", "range": "width", "domain": {"data": "data", "field": "time"} },   {      "name": "y", "type": "linear", "range": "height", "nice": true, "domain": {"data": "data", "field": "value"} },   {      "name": "color", "type": "ordinal", "domain": {"data": "data", "field": "measure"}, "range": "category10" } ],  "marks": [ {     "type": "group", "from": { "data": "data", "transform": [{"type": "facet", "groupby": ["measure"]}] },     "marks": [ {         "type": "line", "properties": { "enter": { "x": {"scale": "x", "field": "time"}, "y": {"scale": "y", "field": "value"}, "stroke": {"value": "grey"}, "strokeWidth": {"value": 2} }         }        },        {          "type": "text", "properties": { "enter": { "x": {"scale": "x", "field": "time", "offset": 2}, "y": {"scale": "y", "field": "value"}, "baseline": {"value": "middle"} }         }        }      ]    }  ] }  {	"params": { "x1": { "description": "Time value for an item", "example": "1446336000", "type": "number", "required": true },		"y1": { "description": "Y value for the corresponding item's time value", "example": "35", "type": "number", "required": true },		"x2": { "inherits": "x1" }, "y2": { "inherits": "y1" }, "x3": { "inherits": "x1" }, "y3": { "inherits": "y1" }, "x4": { "inherits": "x1" }, "y4": { "inherits": "y1" }, "x5": { "inherits": "x1" }, "y5": { "inherits": "y1" }, "x6": { "inherits": "x1" }, "y6": { "inherits": "y1" }, "x7": { "inherits": "x1" }, "y7": { "inherits": "y1" }, "x8": { "inherits": "x1" }, "y8": { "inherits": "y1" }, "x9": { "inherits": "x1" }, "y9": { "inherits": "y1" }, "x10": { "inherits": "x1" }, "y10": { "inherits": "y1" }, "x11": { "inherits": "x1" }, "y11": { "inherits": "y1" }, "x12": { "inherits": "x1" }, "y12": { "inherits": "y1" }, "x13": { "inherits": "x1" }, "y13": { "inherits": "y1" }, "x14": { "inherits": "x1" }, "y14": { "inherits": "y1" }, "x15": { "inherits": "x1" }, "y15": { "inherits": "y1" }, "x16": { "inherits": "x1" }, "y16": { "inherits": "y1" }, "x17": { "inherits": "x1" }, "y17": { "inherits": "y1" }, "x18": { "inherits": "x1" }, "y18": { "inherits": "y1" }, "x19": { "inherits": "x1" }, "y19": { "inherits": "y1" }, "x20": { "inherits": "x1" }, "y20": { "inherits": "y1" }, "x21": { "inherits": "x1" }, "y21": { "inherits": "y1" }, "x22": { "inherits": "x1" }, "y22": { "inherits": "y1" }, "x23": { "inherits": "x1" }, "y23": { "inherits": "y1" }, "x24": { "inherits": "x1" }, "y24": { "inherits": "y1" } },	"description": "Create a sparkline graph of 24 values; x values should be Unix epoc timestamps, y values should be numbers. Values can be in any order.", "format": "inline" }