Skip to main content
Public

Share visualization

Loading preview…

making a Bar graph

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

making a Bar graph

2
SSteve_Nashon
Last edited Oct 17, 2022
Created on Oct 6, 2022

This example shows the planting area per year as a bar chart, highlighting the bar under the mouse cursor with a red outline. Built with D3 v5, it renders to an SVG canvas and uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom` to map the `Area` values from the `data.csv` file to bar heights. The chart includes labeled axes, a title, and background grid lines.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed