Skip to main content
100%

Interactive pie and bar

✓ Published0🌍 Public
Vvans01
Last edited Apr 21, 2020
Created on Apr 21, 2020

This example shows an interactive dashboard combining a bar chart with a pie chart. Hovering over a bar filters the pie chart to display the frequency distribution for that state, while moving the mouse away resets it to the overall totals. The bar chart uses an ordinal scale for x-axis positioning and a linear scale for y-axis heights, with transitions animating both bar heights and colors. The pie chart is built using D3’s arc generator and updates its data on hover events. The data comes from a JSON file with per-state frequency values.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes