Skip to main content
Public

Share visualization

Loading preview…

Fork of Bar Chart: the unemployment rates for 25 random states over 10 years with a dropDown

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 Bar Chart: the unemployment rates for 25 random states over 10 years with a dropDown

1

This fork of a D3.js bar chart displays unemployment rates for 25 randomly selected states across 10 randomly chosen years. A dropdown menu lets the user select a specific year, dynamically updating the chart to show each state's unemployment percentage for that period. Hovering over a bar reveals a tooltip with the exact rate. The visualization uses `d3.scaleBand`, `d3.scaleLinear`, `d3.scaleOrdinal`, `axisBottom`, and `axisLeft` to render the chart, with data from the @oabouhas/unemployment package.

AI-generated description

The project uses D3.js to create an interactive grouped bar chart that visualizes unemployment rates across different states over multiple years. The chart allows users to select a specific year and view the corresponding unemployment rates for each state.

Features Grouped Bar Chart: Displays unemployment rates for each state, grouped by year. Interactive Dropdown: Allows users to select a year and update the chart dynamically. Tooltips: Provides additional information when hovering over bars, showing the exact unemployment rate for the selected year and state. Legend: Indicates the colors corresponding to different years. Hover: Hover over the bars to see the exact unemployment rate for the selected year and state. Select Year: Use the dropdown menu to select a different year and update the chart dynamically.

Comments

Sign in to join the discussion.

MIT Licensed