Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of act6_Task2

Public visualization

Viewing a saved revision (read-only)

de09050b4ae745f8bc21a3eb0fa33879

Fork of act6_Task2

0 stars0🌍 Public
Ppriyapravallika44@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from act6_Task2

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 description