Skip to main content
100%

Horizontal bar chart with button scale transition

✓ Published0🌍 Public
TThanaporn-sk
Last edited Apr 13, 2017
Created on Apr 13, 2017

This interactive visualization displays changes in U.S. federal agency budgets between 2017 and 2018, using a horizontal bar chart with toggle buttons. Users switch between viewing absolute dollar amounts (in billions) and percentage changes, with positive values shown in gray and negative values in red. The chart uses D3.js v3 (d3.scale.linear, d3.svg.axis) to render SVG bars with animated scale transitions triggered by button clicks. Data comes from a CSV file mapping agency names to both dollar and percentage amounts.

AI-generated description

forked from <a href='http://bl.ocks.org/jadiehm/'>jadiehm</a>'s block: <a href='http://bl.ocks.org/jadiehm/b2639daf9e87d75962616cd2903a528c'>Horizontal bar chart with button scale transition</a>

mit Licensed

Similar vizzes