Activity6_Task3
✓ Published0🌍 Public
This example displays a scatter plot of an insurance dataset, plotting age on the x-axis and charges on the y-axis, with points colored by sex (pink for female, light blue for male). The visualization uses D3 v6, loaded via UNPKG, and renders with SVG. The code fetches CSV data from a GitHub repository, parses the values, and creates the chart using `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, `d3.axisBottom`, and `d3.csv`. It also adds labeled axes for Age and Charges.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed