🌍 Public
Viewing a saved revision (read-only)
ef4db476c13c4f3795c9213fecc6c92f
ICE 7 - Pie Chart
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.