draw graph with JSON