a simple widget to draw a XY graph from JSON data