Bar chart
✓ Published2🌍 Public
This example displays a horizontal bar chart ranking the top 10 most populous countries, using population data loaded from a CSV file via `d3.csv`. The chart uses `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and renders bars as SVG `rect` elements. Axes are generated with `d3.axisLeft` and `d3.axisBottom`, with tick formatting applied through `d3.format` to abbreviate numbers. The visualization is built with React, D3 v6, and SVG rendering.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed