Skip to main content
Public

Share visualization

Loading preview…

Let's make a face with D3.js!

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Let's make a face with D3.js!

2
Jjesramyep1263
Last edited Mar 23, 2020
Created on Mar 20, 2020

This example displays a bar chart of the top 10 most populous countries using D3.js v5, with population values derived from a CSV file and rendered as SVG rectangles. It uses `d3.csv` to load data, `scaleLinear` for the y-axis, and `scaleBand` for the x-axis, along with `axisLeft` and `axisBottom` for labeled ticks. The chart title and axis labels are added via SVG text elements, and the y-axis uses a custom tick formatter via `format` to abbreviate large numbers.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed