Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task3

Public visualization

Viewing a saved revision (read-only)

edd7ff43e5f34f6a84f7d5ce7793b7cb

Activity6_Task3

0 stars1🌍 Public
Mmanishmanda@my.unt.edu
Last edited Oct 20, 2024
Created on Oct 19, 2024

This visualization shows the relationship between age and insurance charges, with points shaped according to sex. The scatter plot uses D3 v7’s `scaleLinear` for both axes and `scaleOrdinal` with `symbolsFill` for categorical shape encoding. A custom legend displays the mapping between shapes and sex using D3’s `symbol` generator. Data is loaded asynchronously from a remote CSV file and parsed with `d3.csvParse`, with axes and labels added via the `axisLeft` and `axisBottom` helpers.

AI-generated description