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 descriptionThis is a sample Bar Pie chart. This will be later exported to angular.
MIT Licensed
Comments
Sign in to join the discussion.