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

0
Aantoinecarto
Last edited Jul 4, 2019
Created on Jul 4, 2019
Forked from Making a bar chart

A horizontal bar chart displays the populations of the ten most populous countries, using a CSV data source. The D3 v5 code loads the data and builds the visualization with an SVG canvas, applying a linear scale to the population axis and a band scale for country names. The chart customizes both axes by removing their domain lines, applying a custom tick format that abbreviates large numbers with 'B' for billions, and adding styled labels. The y-axis labels and tick lines are removed entirely, while the x-axis includes negative tick lines extending across the plot area.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed