In this example, we demonstrate the visualization of clusters in K-Means clustering. We use the same example as that given in Chapter 2, Clustering, K-Means clustering section (Clustering people based on height and weight).
Follow the given step-by-step guide to come up with a visualization for the previous example using D3.js:
kmeans.htmlusing any text editor, as follows:
kmeans.html in the same directory as the one in which
d3.v3.min.js resides, or give the path accordingly if you are referencing D3.js ...