Fork of Reusable D3 Scatter Plot
✓ Published0🌍 Public
This scatter plot shows the relationship between farm prices of potatoes and oranges in May 2019, with each point representing a date where both prices are available. The visualization uses D3.js v7 to render an SVG with linear scales for both axes, mapping potato prices on the x-axis and orange prices on the y-axis. The code leverages D3's `csv` loader to fetch the fruit dataset from a Gist, filters for the relevant month and products, then uses the custom `scatterPlot` module with `scaleLinear`, `axisLeft`, and `axisBottom` APIs to draw the chart and its axes.
AI-generated descriptionMIT Licensed