Skip to main content
100%

Fork of Bar Chart with Highlighting

✓ Published0🌍 Public
XXiaoyu Su
Last edited Feb 10, 2021
Created on Feb 10, 2021

This fork of a bar chart visualizes the populations of the world’s most populous countries from 2018 data. It uses D3 v6 to render horizontal bars colored by population size, with a tooltip that appears on mouseover. The chart is built with `scaleLinear` for the x-axis, `scaleBand` for the y-axis, and uses `selectAll` to draw the rectangles. Data is loaded from a CSV file and processed to convert population values, which are then displayed alongside axes and a title.

AI-generated description

This is my code after following a video tutorial by Curran Kelleher.

MIT Licensed

Similar vizzes