Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

task3_question3

Public visualization

Viewing a saved revision (read-only)

9d857d4dfdc1445d9ab09df53cd201d9

task3_question3

0 stars0🌍 Public
VVrushikaKanaparthy@my.unt.edu
Last edited Oct 23, 2024
Created on Oct 23, 2024

This interactive scatter plot visualizes insurance data, plotting age on the x-axis and charges on the y-axis while using different symbols to encode gender. The visualization loads its dataset from a remote CSV file hosted on GitHub and renders it as an SVG canvas. The code leverages D3 v7 APIs including `select`, `csvParse`, `scaleLinear`, `scaleOrdinal`, `symbolsFill`, `axisLeft`, and `axisBottom` to construct the chart, with a custom shape legend displaying gender categories. The plot updates dynamically as new data is fetched and parsed.

AI-generated description