All examples By author By category About

monkeycycle

Load data incrementally in d3 using a sorted value

Gradually loads all the cities of California from north to south, and then removes them from south to north.

Accomplished by sorting the d3 selection prior to the transition, and then adding a custom delay for each object using its index value.

This same principle can be used to progressively load data along any x or y axis.