Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Hello D3 Version 6

Public visualization

Hello D3 Version 6

0 stars1🌍 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

Comments

Sign in to join the discussion.

MIT Licensed