Fork of D3 Starter
✓ Published1🌍 Public
This example shows a horizontal bar chart of the number of cases across several countries, with the data loaded from a CSV file. The bars display values in a compact format using D3's `format` with the `~s` specifier. The chart uses `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis categories, and `d3.axisLeft` and `d3.axisBottom` for the axes, all rendered as SVG. The code also applies margins, a title, and axis labels, with styling defined in a separate CSS file.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed