D3 Example
This interactive scatter plot visualizes the classic Iris dataset, mapping sepal and petal measurements to positions and size. The visualization is built using D3.js and Model.js to create a reusable, reactive module, with SVG rendering. It responds to window resizing, adjusting its dimensions via CSS while maintaining a dotted border and hover effects on data points. Axis labels and tick formatting are configurable, and the chart is derived from example 106 of the "Introduction to D3.js" screencast series.
AI-generated descriptionThis is a scatter plot of the Iris data set.
The purpose of this example is to show one approach for using Model.js to make reusable visualization modules. This also introduces a way to isolate reusable reactive flows that are reusable between visualizations.
Notice that if you open this in a new window, it responds when you resize the browser window. This is coded in such a way that the visualization size can be controlled via CSS.
This example is a lead-in to The Reactivis Concept, which takes generalization of D3 patterns further.
The code for this is derived from example 106 of the screencast Introduction to D3.js.