Bar chart
✓ Published1🌍 Public
This example shows a horizontal bar chart of population values across five countries, with a y-axis for country names and an x-axis for numeric population. The chart loads data from a local CSV file using `d3.csv` and renders SVG rectangles scaled with `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. Axes are generated via `d3.axisLeft` and `d3.axisBottom`. The bars are styled with steelblue fills via CSS, and margins contain the plot area within an 960×500 SVG.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed