Skip to main content
Public

Share visualization

Loading preview…

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

Bar Chart

7
AAbhinav Kumar
Last edited May 31, 2020
Created on May 14, 2020
Forked from Customizing Axes

This bar chart displays the population of five countries, with horizontal bars ranked by country name. The visualization is built with D3 v5 using an SVG renderer, reading data from a CSV file via `d3.csv`. Population values are mapped to a linear scale (`d3.scaleLinear`), while countries use a band scale (`d3.scaleBand`). The chart includes axis labels, tooltips on hover, and click events that alert the selected country and population, all styled with CSS.

AI-generated description

This is a sample Bar Pie chart. This will be later exported to angular.

Comments

Sign in to join the discussion.

MIT Licensed