Skip to main content
Public

Share visualization

Loading preview…

Cus chart

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

Cus chart

1
SSophia Murage
Last edited Mar 31, 2020
Created on Mar 31, 2020
Forked from Customizing Axes

This example displays a horizontal bar chart of country populations, using bars to represent each nation’s relative size. The chart is rendered as SVG with D3 v5, importing `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` from the library. It loads population data from a CSV file via `d3.csv` and maps each country to a bar, with axes labeled accordingly. The population values are parsed as numbers, and the scales and margins are defined to position the bars within the SVG canvas.

AI-generated description

A program that loads and parses some CSV data: CSS Named Colors.

Comments

Sign in to join the discussion.

MIT Licensed