Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity-6 Q-6

Public visualization

Viewing a saved revision (read-only)

f9a526d5e1234cccbefc20913447e64b

Activity-6 Q-6

0 stars0🌍 Public
KKavyaEti
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from Hello VizHub

This scatter plot visualizes the relationship between sweetness level and weight for four fruit types, with each fruit represented by a distinct shape and color. The visualization loads fruit data from a local CSV file and uses d3’s `csv` function to parse it, converting numeric fields. The chart is rendered using d3’s `scaleLinear` for both axes, `scaleOrdinal` for shape mapping, and `symbolsFill` for symbols. A custom shape legend, built with `symbol`, clarifies the fruit-type mapping. The axes, labels, and tick marks are generated through the `axes` module, which utilizes `axisLeft` and `axisBottom` from d3.

AI-generated description