Skip to main content
Public

Share visualization

Loading preview…

Styling a Bar Chart

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

Styling a Bar Chart

1
DDanier
Last edited Sep 18, 2021
Created on Sep 18, 2021

This bar chart displays the top 10 most populous countries using data from the United Nations World Population Prospects 2019. The chart features horizontal bars ordered by country, with a clean, styled aesthetic using the Poppins font and a teal color scheme. Axes are customized with D3's `scaleLinear` and `scaleBand` for positioned ticks, and tooltips using SVG `<title>` elements. Built with React and D3 v5, the visualization highlights the power of reusable components for crafting polished, readable charts.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

Comments

Sign in to join the discussion.

MIT Licensed