Skip to main content
Public

Share visualization

Loading preview…

Fork of Interactive pie and bar

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 Interactive pie and bar

0
AAnthony Zornig
Last edited Jan 31, 2022
Created on Oct 16, 2021

This interactive dashboard combines a histogram with a pie chart and legend to explore categorical frequency data for different states. Hovering over a bar filters the pie chart and legend to display the distribution of low, mid, and high categories for that state, while moving the mouse away resets the view. Built with React and D3.js v3, it uses `d3.select` for SVG creation, `d3.scale.ordinal` with `rangeRoundBands` for the x-axis, `d3.scale.linear` for the y-axis, `d3.layout.pie` for the pie slices, and `d3.transition` for animated updates. The SVG elements also respond to mouseover and mouseout events, and the bar color changes to blue on hover.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed