Skip to main content
Public

Share visualization

Loading preview…

Corey's Bar Chart (from Simple Scatter Plot)

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

Corey's Bar Chart (from Simple Scatter Plot)

0
Ccoreyfnolan@gmail.com
Last edited Feb 5, 2024
Created on Feb 2, 2024

This bar chart visualizes the top 10 countries by total population using data from the UN Population Estimates 2024. The chart renders bars with a gray inner rectangle background, using D3's `scaleBand` and `scaleLinear`. The code filters the dataset for countries, sorts it in descending order, and slices the top 10 entries. It employs `axisLeft` and custom `xAxis`/`yAxis` functions, along with `xAxisLabel` and `yAxisLabel` utilities to label the axes.

AI-generated description

A simple scatter plot with D3 showing the Penguins Dataset.

Challenge

  • Fork this viz
  • Modify it to show your data

Comments

Sign in to join the discussion.

MIT Licensed