Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

1 q -pie chart task 9

Public visualization

Viewing a saved revision (read-only)

195414853e864a9b8820c3e4ea0cab0d

1 q -pie chart task 9

0 stars0🌍 Public
RRakesh Yadav
Last edited Apr 22, 2024
Created on Apr 22, 2024

This pie chart visualizes the market share of operating systems as a proportion of a whole. The chart is rendered as an SVG using D3.js (v7), with each slice sized by the `Market_Share` value and labeled with the `Operating_System` name. The data is loaded from a remote CSV file via `fetch` and parsed with `d3.csvParse`. Slice colors are assigned using a categorical color scheme (`d3.scaleOrdinal` with `d3.schemeCategory10`), and the pie geometry is computed with `d3.pie` and `d3.arc`, with labels positioned via the `labelArc` centroid.

AI-generated description