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

1
Aaidanoconnor1
Last edited Nov 25, 2019
Created on Nov 24, 2019

This example presents a horizontal bar chart ranking the world’s most populous countries, with population values on the x-axis and country names on the y-axis. The code uses `d3.csv` to load the data and `scaleLinear` and `scaleBand` for positioning. Axis customization is central: the x-axis uses a custom tick formatter to abbreviate large numbers, while the y-axis removes its domain and tick lines. The chart is rendered as SVG, with grid lines drawn via `tickSize` and formatted using `d3.format`.

AI-generated description

This bar chart shows something pog

Comments

Sign in to join the discussion.

MIT Licensed