Pre-General Availability: 2023-01-18
runSql("SELECT Name, Population FROM world.country ORDER BY Population DESC LIMIT 10;",
function (result) {
var options = {
series: [
{
type: "bar",
yLabel: "Country Population",
data: result,
marginLeft: 100,
marginBottom: 30,
yDomain: [0, 1500000000]
},
],
};
var graph = new Graph();
graph.render(options);
});