Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 8_Q3.A3

Public visualization

Activity 8_Q3.A3

0 stars1🌍 Public
SSeema Shrestha
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Activity6_Task3.2

This scatter plot visualizes the relationship between patient age and the sodium-to-potassium ratio, with points colored by drug type to reveal potential patterns across categories. The visualization uses D3 v6 to load a CSV dataset from GitHub, applies linear scales for both axes, and renders circles on an SVG canvas. The code employs `d3.scaleLinear`, `d3.scaleOrdinal`, and `d3.schemeCategory10` for color encoding, with axis labels and a legend generated programmatically to clarify the drug categories and measurement units.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed