Skip to main content
Public

Share visualization

Loading preview…

Customizing Axis

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 Axis

2
Xxsg13
Last edited Nov 28, 2020
Created on Nov 28, 2020
Forked from Making a Bar Chart

This example displays a horizontal bar chart of the world’s most populous countries, with China leading and the United Kingdom at the bottom. The code uses D3 v6 with SVG rendering, reading population data from a CSV file. It customizes both axes by removing domain lines and tick marks, applying a tick format that converts large numbers to abbreviations like “1.44B”, and adding an axis label. The bars are colored steelblue, with a title and sans-serif text styling from the included stylesheet.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed