d3.csv("https://download.data.world/s/gql3nqd6xio7nj36oelcfu4volkkma",
function(error, data)
{
if (error) throw error;
var svg = dimple.newSvg("body", 1200, 700);
var chart = new dimple.chart(svg, data);
var x = chart.addCategoryAxis("x", "concelho");
var y = chart.addMeasureAxis("y", "populacao");
chart.addSeries("freguesia", dimple.plot.bar,[x,y]);
chart.draw();
});
|
|