Skip to main content
Public

Share visualization

Loading preview…

Bar data visulization

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

Bar data visulization

0
Ffaqihisaninja
Last edited Feb 9, 2021
Created on Feb 9, 2021
Forked from data visulization

This example shows a horizontal bar chart comparing population figures across six countries, with each bar’s length proportional to its population value. The visualization uses React with D3 v6, rendering SVG elements via d3.select, d3.csv, d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom. The code loads data from a CSV file, multiplies population values by 1,000, then maps countries to the y-axis and scaled populations to the x-axis, with steelblue rectangles and axis labels.

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