Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task 9

Public visualization

Task 9

0 stars0🌍 Public
Kkeerthanachinthalapally@gmail.com
Last edited Apr 26, 2024
Created on Apr 26, 2024
Forked from Pie Chart

This D3.js visualization presents a pie chart of average daily accidents per state, using data fetched from a GitHub-hosted CSV file. The chart is rendered as SVG, with each slice colored and labeled, and a legend on the right displaying state names and corresponding values. The code utilizes D3 APIs including `d3.pie`, `d3.arc`, `d3.scaleOrdinal`, and `d3.format` to compute the pie segments, generate arc paths, assign categorical colors, and format numeric labels. The visualization's title is styled with red, italic, and underlined text.

AI-generated description

A demonstration of Pie chart.

Comments

Sign in to join the discussion.

MIT Licensed