Skip to main content
100%

Activity6_Task3

✓ Published0🌍 Public
Ggoudrohit2000@gmail.com
Last edited Oct 21, 2024
Created on Oct 21, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes