Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task3_Qus6

Public visualization

Viewing a saved revision (read-only)

74a77c1daf0c4a0593710d654805ed4c

Activity6_Task3_Qus6

0 stars0🌍 Public
Aamarnadhkari98@gmail.com
Last edited Oct 25, 2024
Created on Oct 25, 2024

This scatter plot displays the relationship between fruit weight and sweetness for ten fruit types. Each circle represents a fruit, positioned by weight on the x-axis and sweetness on the y-axis, with color assigned via the `d3.scaleOrdinal` scale, though all points share the category "fruit." Rendered as an SVG using D3 v6, the code loads data from a CSV file via `d3.csv`, scales axes with `d3.scaleLinear` and `d3.extent`, and draws axis ticks with `d3.axisBottom` and `d3.axisLeft`. The plot sizes itself to the browser window.

AI-generated description