Skip to main content
Public

Share visualization

Loading preview…

Project 1 — 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

Project 1 — Bar Chart

0
SSYAM TEJ
Last edited Oct 15, 2025
Created on Oct 15, 2025

A bar chart displays aggregated values by category, with interactive controls that let users choose the categorical and numeric columns to visualize. The chart loads data from a local CSV file using `d3.csv` with `d3.autoType` to infer column types, then builds a sorted bar layout. The D3 v7 code uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, grid lines via `d3.axisLeft`, and tooltips that follow the mouse. The bars are filled with a blue color, and axes are automatically labeled and rotated for readability.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed