Graph: Difference between revisions

From RAJ INFO
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#tag:graph|
{
{
   "description": "A simple bar chart with embedded data.",
   "description": "A simple bar chart with embedded data.",
Line 14: Line 15:
   }
   }
}
}
}}

Revision as of 15:10, 14 May 2016

<graph> {

 "description": "A simple bar chart with embedded data.",
 "data": {
   "values": [
     {"a": "A","b": 28}, {"a": "B","b": 55}, {"a": "C","b": 43},
     {"a": "D","b": 91}, {"a": "E","b": 81}, {"a": "F","b": 53},
     {"a": "G","b": 19}, {"a": "H","b": 87}, {"a": "I","b": 52}
   ]
 },
 "mark": "bar",
 "encoding": {
   "x": {"field": "a", "type": "ordinal"},
   "y": {"field": "b", "type": "quantitative"}
 }

}


</graph>