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

0
GGeMixl
Last edited Dec 15, 2020
Created on Dec 15, 2020
Forked from Customizing Axes

This example shows a horizontal bar chart of country populations, with each bar’s length proportional to population and country names along the y-axis. The visualization uses D3 v5’s `scaleLinear` and `scaleBand` to map population and country values, rendering bars as SVG rectangles within a grouped `<g>` element. Data is loaded from a CSV file via `csv()`, with population values converted from billions to raw numbers. The chart includes fixed margins for spacing but does not display axes or labels, focusing on the raw bar layout.

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