Activity6_data_vis
✓ Published1🌍 Public
This example displays the populations of 30 countries for 2020 as a horizontal bar chart, with countries ordered along the y-axis and population values plotted along a linear x-axis. The visualization uses React to render SVG elements, with D3 v5 scales (scaleBand and scaleLinear) computing positions, while custom AxisBottom and AxisLeft components generate the tick marks and labels. Population values are formatted using D3's format function and the data is loaded from a remote CSV file via d3.csv.
AI-generated descriptionMIT Licensed