Fork of act6_Task2
✓ Published0🌍 Public
This scatter plot visualizes the relationship between two quantitative variables across data points, with each point colored by its categorical label and a corresponding legend. Built using D3.js, it employs `scaleLinear` for the x and y axes, `extent` to compute domains from the data, and `axisLeft`/`axisBottom` for the coordinate axes. Circles are rendered with `selectAll`/`join`, and the legend is constructed with appended `rect` and `text` elements. The plot derives its categories from the data’s `category` field, assigning colors via a `scaleOrdinal`.
AI-generated descriptionMIT Licensed