Collect and Visualise Star Wars data using Scala and D3.js

At the moment there’s a lot of craze for the new movie Star Wars: Episode VII The Force Awakens.

This was the perfect opportunity to brush up on my knowledge of Star Wars starships. There’s a public API to help which lets you list all films and associated data such as starships, people, vehicles etc:

I’ve created a quick demo using Scala which uses together with images and links retrieved from to collect data into a JSON file. This file is then used with D3.js to visualise Star Wars starships for each movie.

Screenshot 2015-12-28 12.17.42.png


Collected data.json

You can find the code for the project written and running instructions here:




Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s