Visualization of the quicksort algorithm using d3, showing the array each time it is swapped. The white lines show which values are being swapped.
This is using Babel so it would work in more browsers, specifically ones that don't support ES2015 generators.
I realized after the fact that this was using a slower algorithm than one I've used to make a similar visualization in the past. This example has a faster version of this in-place algorithm.
https://d3js.org/d3.v4.min.js
https://unpkg.com/babel-standalone@6/babel.min.js
https://unpkg.com/babel-polyfill@6.16.0/dist/polyfill.js