Fork of Animated Reusable D3 Scatter Plot
This animated scatter plot cycles through the numeric columns of the Iris dataset, plotting each feature against the last one. The visualization uses D3.js’s `scaleLinear`, `axisLeft`, and `axisBottom` to render axes, while `transition` animates the circles as the x-axis changes every three seconds. The code also implements reusable chart components with getter and setter methods, and includes axis titles that animate in and out.
AI-generated descriptionAdded axis titles and animation to the x-axis label.
A couple of questions when making this update:
When using the ternary operator
continuedoes not seem to work whithin aforloop. line 43 of index.jsNeed to call the
plot()function beforeiis incremented. Is this related to the fact that this is anasyncfunction? So willionly be evaluated withincall()and not when thescatterPlot()instance is created? line 65 of index.js