Skip to main content
Public

Share visualization

Loading preview…

A4 - Bar 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

A4 - Bar Chart

1
Kkmduncan2@dons.usfca.edu
Last edited Feb 15, 2025
Created on Feb 15, 2025
Forked from A3 - Box Plot

This bar chart visualizes total rainfall in Ecuador from 1940 to 1950, with each bar representing a year’s precipitation in millimeters. The chart uses D3 v7 to load CSV data from a Gist, scales the values with d3.scaleBand for the x-axis and d3.scaleLinear for the y-axis, and renders axes with d3.axisBottom and d3.axisLeft. Bars are drawn as SVG rectangles with a light blue fill, styled via a linked CSS file, and the layout includes margins, a title, and rotated axis labels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed