Viewing a saved revision (read-only)
086d1c1643fe44ceabecffbd593d49ce
Fork of Making a Bar Chart
A slider-driven bar chart displays the number of Tour de France wins by country for a selected year, with data from a GitHub-hosted CSV. The visualization updates in response to slider input, re-rendering the chart with a new year’s dataset via D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`. SVG rectangles represent each country’s win count, styled with steelblue fill, while the slider’s `change` event triggers a redraw using the stored global data.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.