Talk:MediaWiki Developer Summit 2015/Lessons learned/Graph

{ "version": 1, "width": 500, "height": 200, "padding": { "top": 10, "left": 30, "bottom": 20, "right": 10 }, "data": [ {     "name": "table", "values": [ { "x": "Very satisfied", "y": }, { "x": "Satisfied", "y": }, { "x": "Neither satisfied or dissatisfied", "y": }, { "x": "Dissatisfied", "y": }, { "x": "Very Dissatisfied", "y": } ]   }  ],  "scales": [ {"name":"x", "type":"ordinal", "range":"width", "domain":{"data":"table", "field":"data.x"}}, {"name":"y", "range":"height", "nice":true, "domain":{"data":"table", "field":"data.y"}} ], "axes": [ {     "type":"x", "scale":"x", "properties": { "majorTicks": {"strokeWidth": {"value": 5}}, "labels": { "fontSize": {"value": 13}, "fill": {"value": "red"}, "angle": {"value": -90}, "align": {"value": "left"}, "baseline": {"value": "middle"}, "dx": {"value": 16} }}},   {"type":"y", "scale":"y"} ], "marks": [ {     "type": "rect", "from": {"data":"table"}, "properties": { "enter": { "x": {"scale":"x", "field":"data.x"}, "width": {"scale":"x", "band":true, "offset":-1}, "y": {"scale":"y", "field":"data.y"}, "y2": {"scale":"y", "value":0} },       "update": { "fill": {"value":"steelblue"} }, "hover": { "fill": {"value":"red"} } }   }  ] } Template specifically for drawing graphs of [[MediaWiki Developer Summit 2015/Lessons learned#Data] data.

Usage

 * Sample invocation
 * produces:

Parameters
Provide these 6 parameters, in order, separated by '|'
 * 1) Question title
 * 2) count of "Very satisfied" responses" responses
 * 3) count of "Satisfied" responses" responses
 * 4) count of "Neither satisfied nor dissatisfied" responses
 * 5) count of "Dissatisfied" responses
 * 6) count of "Very Dissatisfied" responses