Skip to main content
Public

Share visualization

Loading preview…

Customizing Axes

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

Customizing Axes

2
SSamuel Elbaz
Last edited Nov 12, 2019
Created on Oct 29, 2019
Forked from Making a bar chart

This bar chart displays the top 10 most populous countries, with population values on the x-axis and country names on the y-axis. It uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` APIs, with a custom tick formatter via `format('.3s')` to abbreviate numbers. SVG rendering is used, drawing steel-blue bars with margins and a title. The data comes from a CSV file where population values are multiplied by 1000 during loading.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed