Skip to main content
100%

Bar Chart

✓ Published7🌍 Public
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.

MIT Licensed

Similar vizzes