d3.csv("https://download.data.world/s/dm5dtxyhhq7bxsy7v7l3wrnktourwm",
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();
});
|
|