Skip to main content
100%

Bar Chart Visualization for country table dataset

✓ Published0🌍 Public
JJames Cruz
Last edited Apr 26, 2024
Created on Apr 26, 2024
Forked from HTML Starter

This bar chart visualization displays population counts for five countries—USA, China, India, Indonesia, and Pakistan—using vertically oriented rectangular bars. The chart uses D3.js v7 with React-compatible SVG rendering, employing `d3.scaleBand` for the categorical country axis and `d3.scaleLinear` for the population values. Bars are styled with a steel blue fill that changes to orange on hover, while rotated country labels on the x-axis improve readability. The visualization includes both axes with tick marks and clear axis labels for country and population.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes