Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Interactive pie and bar

Public visualization

Viewing a saved revision (read-only)

2b3dd72f8d2845f498cf5ec16a7e2793

Interactive pie and bar

1 star5🌍 Public
Ssowbalas
Last edited Feb 15, 2020
Created on Jan 16, 2020
Forked from HTML Starter

This interactive dashboard synchronizes a bar chart and a pie chart to explore categorical frequency distributions across multiple states. Hovering over a bar updates the pie chart and legend to show the breakdown of the selected state’s data into low, mid, and high segments, while moving the mouse away restores the overall totals. Built with React and D3.js v3, the visualization uses SVG for rendering and animated transitions to smoothly update the bar heights, colors, and labels, as well as the pie chart slices. The bar chart uses an ordinal scale for the x-axis, and the pie chart’s updates are driven by calling its `update` function with new data.

AI-generated description

A bare minimum HTML page.

See also React Starter.