🌍 Public
Viewing a saved revision (read-only)
0831ba7fafde4c298086a0aac6d12d03
Activity6_Task3_Qus6
This D3.js v6 scatter plot visualizes the relationship between fruit weight (in grams) and sweetness rating (1-10) using data from a CSV file. Each fruit is represented as a circle positioned along the x-axis for weight and y-axis for sweetness, with all points colored pink via a color scale. The visualization uses D3's `csv` loader, `scaleLinear` for axes, `extent` to compute domains, and `axisBottom`/`axisLeft` to render the chart. The SVG output includes labeled axes for weight and sweetness, with the plot sized to fill the browser window.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.