Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ice7 part2

Public visualization

Viewing a saved revision (read-only)

af4264c38d524e23aa8a30450b521090

ice7 part2

0 stars0🌍 Public
Jjammigumpula.priyanka193@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024
Forked from HTML Starter

This example presents an interactive pie chart built with D3.js v7 that visualizes static sales data across four product categories. The chart renders as an SVG, with each category represented by a colored slice, and uses a hover interaction to display a tooltip showing the category name and its sales value. The code employs `d3.pie()` to compute the arc angles, `d3.arc()` to generate the slice paths, and `d3.scaleOrdinal` with `d3.schemeCategory10` for coloring. A separate HTML legend lists each category with its corresponding color swatch.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.