Skip to main content
100%

Activity 8_Q3.A3

✓ Published1🌍 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
MIT Licensed

Similar vizzes