Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

7q2

Public visualization

Viewing a saved revision (read-only)

18e73c4607444584a51ad14457806b25

7q2

0 stars1🌍 Public
Kktvgs25@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024
Forked from i7q1

This example visualizes internet user percentages by country as a pie chart, using a dataset loaded from a CSV file. The chart encodes each country’s share of users as an arc slice, with a legend mapping country names to their corresponding percentages. Built with D3.js v7, it uses the `d3.pie` and `d3.arc` functions to compute and draw the arcs, while `d3.scaleOrdinal` assigns categorical colors from `schemeCategory10`. The data is fetched via `d3.csv` and rendered as SVG, with a dynamically generated HTML legend styled with flexbox.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.