Making a Bar Chart
This bar chart ranks the IMDb scores of six movies, with bar length encoding score and color ranging from IndianRed to red based on the same value. Hovering over a bar displays the movie title, score, and budget in an HTML overlay. The visualization uses D3 v5 scales (`scaleLinear`, `scaleBand`) and axes (`axisLeft`, `axisBottom`) to render SVG bars, while a green circle toggles a width transition animation on click, collapsing and expanding the bars.
AI-generated descriptionThis bar chart shows population of the thirteen most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017.
Note: That link doesn't give data for the year 2018 but for the year 2015. In this example, I've used the data provided in the class (which is close to the downloaded data).