This week we were introduced to different programs for animation: three.js and d3.js. Our
assignment was to get familiar with one of them and create a sketch using data from a different source.
For a while I have been wanting to get more familiar with d3. This week was my chance. I have seen some great animations made using this library and I see a lot of potential in the things you can create with it. To learn the basics I did some online tutorials - to figure out the syntax.
The first sketch was creating a line of circles. Their radius was based on simple dataset.
The next task was to create a pie-chart / donut-chart. These types of charts turned out to be very similar in their structure.
When learning more about the structure. I wanted to do something with animation. I found a well documented site using topojson a library that would outline different countries using a great number of line segments referred to as arcs. I downloaded the outline of Denmark and all its municipalities. With some difficulties I managed to make it work - especially finding my way into the interesting shapes was a struggle. After some work I had the outline of the map down. I then wanted it to be interactive and added a transition to each svg using the .on(mouseover, _____) function. And some minor fade-in effects when the document had loaded.
The next assignment will be to have each municipality display information. Also I would like to have the selected municipality move to the front when it is doing its animation.
The file can be seen here (it may be necessary to change the https request into a http in order for it to work):
D3js Sketch Denmark