Making a bar chart
✓ Published1🌍 Public
This example shows a horizontal bar chart of country populations, with bars rendered in steel blue and value labels along the x-axis. It loads data from a CSV file, converting population values to thousands before scaling. The visualization uses D3 v6’s `scaleLinear` and `scaleBand` for positioning, with `axisLeft` and `axisBottom` for ticks, and appends SVG `rect` elements within a margin-based group.
AI-generated descriptionMIT Licensed