Skip to main content
100%

Fork of d3 Updating Bar Chart With Dropdown

✓ Published0🌍 Public
Aamitkdas08
Last edited Feb 4, 2022
Created on Feb 4, 2022

This example shows a bar chart of nutritional values for a selected cereal, with a dropdown menu to choose which cereal to display. It uses d3.csv to load data from cereals.csv, and d3.scale.ordinal and d3.scale.linear for the x and y axes. On dropdown change, the chart transitions the bars and y-axis domain to the new cereal’s values. The visualization renders as SVG, with purple bars and animated updates via transition().duration().

AI-generated description
MIT Licensed

Similar vizzes