All examples By author By category About

curran

[unlisted] Poorly Performing Clock

A clock, constructed using nested components with d3-component.

Since we're not confined to physical limitations, why not have a "millisecond hand"?!

This is the first pass at implementing a clock, using d3-component "all the way down". This is not the most efficient way of doing it, because of the unnecessary garbage collection (visible using Chrome's "Allocation Timeline"). Take a look at this example - Clock - which is an optimized implementation of this one.

Built with blockbuilder.org

forked from curran's block: Clock