This block is a hastily-put-together visualization of the Ckmeans algorithm. I used this algorithm to build d3-scale-cluster last year, but I never truly grasped how the underlying algorithm worked. Inspired by algorithm visualization work from others in the community, I figured the best way to understand Ckmeans would be to visualize it–and thus, this block was born.
This is very much a work in progress, and the code needs to be cleaned up significantly–just wanted to use this block for my unconf registration! Hoping to have a more fleshed out version in the coming weeks.
https://d3js.org/d3.v4.min.js
https://unpkg.com/lodash@4.17.4/lodash.min.js