Skip to main content
Public

Share visualization

Loading preview…

Fork of Reusable D3 Scatter Plot

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Reusable D3 Scatter Plot

0
Hharichandanamone21@gmail.com
Last edited Mar 28, 2024
Created on Mar 26, 2024

This pie chart shows the frequency distribution of the top 10 most common math scores from a student dataset, with each slice representing a score and its count. The visualization uses D3.js v7 to load CSV data, calculate score frequencies, and sort them to select the highest counts. D3’s `pie` and `arc` generators create the SVG paths, while a custom color palette (filtered from `d3.schemeCategory10`) fills each slice. A separate SVG legend, built with `d3.select` and data joins, maps colors to score values and counts, with the chart and legend displayed side by side in a flex container.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed