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.
d3
functions to adjust the num_steps
and radius
to see how the path changesforked from Jay-Oh-eN‘s block: 1-D Random Walk