Skip to main content
100%

ICE 7 - Pie Chart

✓ Published0🌍 Public
Kkotlavamsireddy@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024
Forked from HTML Starter

This pie chart shows the distribution of smokers versus non-smokers in an insurance dataset, highlighting the proportion of each category. It uses D3.js v7’s `d3.pie` and `d3.arc` to generate the SVG arcs, with a color scale assigning teal to smokers and orange to non-smokers. Interactive tooltips appear on mouseover, displaying the category name and count. The data is fetched from a remote CSV file, and a legend below the chart clarifies the color coding.

AI-generated description
MIT Licensed

Similar vizzes