🌍 Public
Viewing a saved revision (read-only)
e68798e8f6324c3982243a0cbfb8c576
test
This example shows a bar chart of country populations that reorders its bars according to a user-selectable sorting option. The chart initially displays data in descending frequency order, but a dropdown menu allows switching between alphabetical and ascending or descending value sorting. The visualization uses D3 v6 APIs including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, with SVG rectangles for rendering. The data comes from a CSV file loaded into the chart.
AI-generated description