🌍 Public
Viewing a saved revision (read-only)
2b520918f34a48f8b25bc32509ddc9a4
ICE-6 Bar Graph
This example displays a horizontal bar chart of total revenue for twelve countries, loaded from a CSV file. Built with React and D3 v5, it uses `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. SVG rectangles are rendered for each bar, with gridlines and axis tick labels generated via `xScale.ticks()` and custom text elements. The data is fetched asynchronously using `d3.csv` and processed with a row function to convert revenue values to numbers.
AI-generated descriptionA whole smiley face