scatterplot
✓ Published0🌍 Public
This scatterplot displays the population of four countries using horizontal bars, with country names on the y-axis and population counts on the x-axis. The visualization loads data from a CSV file using `d3.csv`, then applies `scaleLinear` and `scaleBand` to map values to screen coordinates. Axis ticks are generated with `axisLeft` and `axisBottom`, with tick labels formatted using `d3.format` to abbreviate large numbers. The chart is rendered as an SVG, with bars styled via `rect` elements and a title added as SVG text.
AI-generated descriptionMIT Licensed