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

1
黃黃歆善
Last edited Sep 22, 2023
Created on Sep 17, 2023
Forked from Making a Bar Chart

A bar chart displays the top 10 most populous countries from a CSV file, with country names on the y-axis and population on the x-axis. The bars are drawn as SVG rectangles, while the axes are customized using D3 v7’s `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` functions. The x-axis tick labels are reformatted with `format` to abbreviate large numbers, and gridlines span the chart via negative tick sizes. The y-axis domain line and ticks are removed, and custom text labels are added for the chart title and axis title.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed