Parallel coordinate plot for iris dataset with changable order of axes
This example visualizes the Iris dataset using a parallel coordinate plot, where each of the four flower measurements (sepal length, sepal width, petal length, petal width) is represented as a vertical axis. Users can reorder the axes by selecting a different measurement from any of the four dropdown menus, with the polylines updating to reflect the new arrangement. The plot uses d3.scaleLinear and d3.scalePoint to position axes and data points, while d3.line generates the paths connecting values for each of the 150 samples. A color scale distinguishes the three iris classes, and all rendering is done with SVG in D3 v5.