🌍 Public
Viewing a saved revision (read-only)
e8b3d9404f774b1282b2ea85ca17ca10
ICE-6: Rendering Marks and channels with Rect & D3
This example visualizes the top 10 profit countries using a horizontal bar chart rendered as SVG in a React application. It displays country names on the y-axis and profit sales on the x-axis, with blue tick lines and axis labels. The code loads data from a CSV file using `d3.csv`, then uses `d3.scaleBand` and `d3.scaleLinear` to map values to `rect` marks. React manages the state and rendering, while D3 v7 handles data parsing and scales, with axes and bars drawn manually.
AI-generated descriptioncreating a react app, data hangling