I’ve been babbling recently with charts and most of them was with DimpleJS.
However, what is beside DimpleJS is d3.js which is an amazing tools for drawing anything in SVG.
So to babble some more, I’ve decide to do something simple. Draw Canada.
The Data
I’ve taken the data from this repository that contains every line that forms our Maple Syrup Country. Ours is called “CAN.geo.json”. This file is called a Geo-Json file and allows you to easily parse geolocation data without a hitch.
The Code
1 | var svg = d3.select("#chartContainer") |