🌍 Public
Viewing a saved revision (read-only)
42f243e0448347959bd0012b975f1d5c
React select
This example demonstrates how to filter a dataset using a React dropdown menu. It displays a simple bar chart of the top 10 most populous countries, using data from the United Nations World Population Prospects 2019. The React `Dropdown` component, built with the `select` element, manages state through `React.useState` and updates the chart based on the user's selection. The visualization uses `d3` v5 for rendering.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.