See the prior 3 posts for context:
- How accurate is Next Bus I: Extracting data from API
- How accurate is Next Bus II: Wrangling data
- How accurate is Next Bus III: Getting the answers
This one takes a long time to load. It makes a d3.csv
call to a 24MB file. I was surprised to find that reading in the file took
all this time, but transformations that happen in the app take almost no time at all.
One week of Next Bus predictions
The scatter plot with zoom+pan+brush loaded too slow with the full dataset (24MB) of all 190,000 predictions for the week. It also made for a crowded visualization. So I took a sample preserving a consistent distance between predictions. The sampled data (2.5MB) takes every 10th prediction which turns out to be approximately a prediction every 90 seconds.