Press CTRL+C to copyrunSql("SELECT Name, Population FROM world.country LIMIT 10;", function (result) { var options: IGraphOptions = { series: [ { id: "myFirstGraph", type: "bar", yLabel: "Country Population", data: result as IJsonGraphData, marginLeft: 60, marginBottom: 30, yDomain: [0, 50000000] }, ], }; Graph.render(options); });