Thursday, 26 January 2012

Data matrix visualisation using Processing

The visualisation below, which I developed using the Java-based processing object orientated programming language, shows intra-european trade origins and destinations by volume.  The code reads data from a couple of xml files and utilises a custom object to draw a selection of bezier curves for each country's exports and imports.


The height of the curve shows the volume of trade (normalised by population), and the colour shows the direction of travel, i.e. the red cures in the top half show exports from Ireland, while the red curves in the bottom half show imports to Ireland.


You can view the code here, and download a larger (and clearer) PDF version here.



No comments:

Post a Comment