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
CConnor Trump
Last edited Oct 10, 2021
Created on Oct 10, 2021
Forked from Making a Bar Chart

A bar chart displays the top 10 most populous countries from a CSV file, with population on the x-axis and country names on the y-axis. Custom axes hide domain lines and use a tick size that extends gridlines across the chart, while formatting tick labels with D3's `format` to abbreviate values and replace 'G' with 'B'. The code uses `d3.csv`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` within an SVG rendered in a React setup.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed