Skip to main content
100%

Hello D3 Version 6

✓ Published1🌍 Public
Lliyaxuanliyaxuan
Last edited Nov 23, 2020
Created on Nov 23, 2020
Forked from Hello D3 Version 6

This example uses D3 version 6 to render a simple horizontal bar chart of population counts for five countries, reading from a CSV file. The code imports `select`, `csv`, `scaleLinear`, `max`, and `scaleBand` from D3 to create an SVG visualization. It maps country names to the y-axis using a band scale and population values to the x-axis with a linear scale, then appends rectangles to the SVG. The chart displays the data with equal spacing and no axis labels, emphasizing the relative population magnitudes.

AI-generated description
MIT Licensed

Similar vizzes