Skip to main content
Public

Share visualization

Loading preview…

Bar Chart.js

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 Chart.js

1
Dddperdue
Last edited Mar 23, 2020
Created on Mar 23, 2020

This bar chart displays the populations of five countries, using horizontal bars to compare values. It loads data from a CSV file and renders with D3 v5, using `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`. The SVG is sized via attributes, and margins define an inner plotting area. Axis ticks are formatted with `d3.format`, and the chart includes a title and axis label. The bars are filled with steelblue, and grid lines are drawn using a negative tick size.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed