block by biovisualize 1c0c7ad51d3d28481cea

1-D Random Walk

Full Screen

Foundations of D3: Manual Scaling

A 1-dimensional random walk visualized. To better understand what scales are doing, avoids using D3’s build in scales and instead manually computes a step size as well as a starting position from which to walk.

  1. You should use blockbuilder.org and the following Javascript and d3 functions to adjust the num_steps and radius to see how the path changes
  2. Once you have a feel for the parameters, make a line chart instead. For extra credit gradient encode the random walk path.

Reference

forked from Jay-Oh-eN‘s block: 1-D Random Walk

index.html