block by cmgiven a325f14550a65dc8ff6898ef0f9feeb4

Bouncing Logo

Full Screen

Block-a-Day #7. The D3 logo bounces around the screen in a frictionless environment

What I Learned: My first foray into defining a custom force with the v4 API. I’m planning to try adding another custom force into the mix tomorrow, so we’ll see how well this holds up.

What I’d Do With More Time: dragged() should have a timeout to zero out the node’s velocity when the mouse remains stationary for a certain period of time.

Block-a-Day

Just what it sounds like. For fifteen days, I will make a D3.js v4 block every single day. Rules:

  1. Ideas over implementation. Do something novel, don’t sweat the details.
  2. No more than two hours can be spent on coding (give or take).
  3. Every. Single. Day.

Previously

index.html