🌍 Public
Viewing a saved revision (read-only)
865f7de8ef0f4b5d8ab72999857fd467
Fork of D3 scatterplot
This fork of the D3 scatterplot visualizes the relationship between age and income for individual data points. The chart displays circular marks positioned along linear scales for both axes, with gridlines and labeled axis titles. The code uses D3’s `scaleLinear`, `max`, `axisBottom`, and `axisLeft` APIs to construct the scales and axes, while `select` and `append` manage the SVG elements. Data is bound through `selectAll('circle').data(...)`, with each circle’s position set via the `cx` and `cy` attributes. No external data source is shown, as the render function expects an array of objects containing `Age` and `Income` fields.
AI-generated description