Skip to main content
  1. Posts/

Visualizing Bicycle Traffic in London UK

··245 words·2 mins·
Leaflet Javascript Blog Data Visualization

Some time back I made an interactive scatter plot with Bokeh to show the average weekday traffic of public bicycles in London UK in 2019. I wrote about it in an article that you can find here on my website. The plot shows the net flux of public bicycles entering and exiting from every bicycle station in the London city center over the 24 hour period. Colors towards the red show a negative outward net flux of bicycles while blue shows a positive inward net flux of bicycles.

At the time I used a free-tier Heroku hosting instance to deploy it, but I always wanted to find a way to host it on my own personal website without using a third-party hosting service. With some help from artificial inteligence and a bit of computer savvy, I’ve been able to convert my Bokeh code into JavaScript, Leaflet.js , CSS and HTML, and host it on my website.

Average Weekday Public Bicycle Traffic in London

Net flux of public bicycles entering and exiting from bicycle stations in London over 24 hours. Red circles show a negative net flux of bicycles while blue circles show a positive net flux of bicycles.

Above you can see the interactive visualization of weekday bicycle traffic in London, using the same 2019 public bicycle data from Transport for London. You can adjust the hour and filter by traffic volume. Click the play button to show the animation throughout the day. Enjoy! 😀

Angelo Varlotta
Author
Angelo Varlotta
If you can’t explain it simply, you don’t understand it well enough – Albert Einstein