Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Piechart

Public visualization

Piechart

0 stars0🌍 Public
Vvenkatajayanth03
Last edited Jul 3, 2022
Created on Jul 3, 2022

This pie chart visualizes lottery ticket sales in Texas for a single day, displaying five categories with counts ranging from 390 to 3,597. Each slice’s arc length encodes the count value, with distinct colors assigned via `d3.scaleOrdinal`. The chart includes value labels positioned using the `d3.arc` centroid method and a legend listing names and counts. Data loads asynchronously from Lottery.csv using `d3.csv`, with counts parsed to numbers before `d3.pie` computes the angular layout.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed