Countries table
✓ Published0🌍 Public
This bar chart displays the top 30 countries by land area, using a horizontal layout where each bar’s length corresponds to the country’s area in square kilometers. The visualization is rendered as an SVG using React and D3 v5, with data loaded from a CSV file via `d3.csv`. It employs `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, while custom React components (`AxisBottom`, `AxisLeft`, `Marks`) draw the axes and rectangles. Tooltips show formatted area values, and axis tick labels are formatted using `d3.format`. The chart also includes a blue x-axis gridline and a labeled “LANDAREA” axis title.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed