Skip to main content
100%

Activity9-Ques1

✓ Published0🌍 Public
Ssirichandana017@gmail.com
Last edited Apr 17, 2024
Created on Apr 17, 2024

This example shows a basic pie chart visualization built with D3.js, displaying three categorical values from a hardcoded dataset. The chart renders as an SVG with colored arc segments using the `d3.pie` and `d3.arc` generators, with a categorical color scale (`d3.schemeCategory10`) mapping each category to a distinct hue. A legend on the right side labels each category, while x- and y-axis labels are added to the SVG container even though the pie chart itself does not use axes. The code also includes a link to a gist data source, though the dataset is defined inline.

AI-generated description
MIT Licensed

Similar vizzes