Fork of Fork of Activity_6_TASK1_DV_Q1.2
✓ Published0🌍 Public
This visualization displays the population of 20 countries in 2010 using horizontal bars, with countries listed along the vertical axis and population values on the horizontal axis. The chart renders as an SVG using React components, with D3 scaleBand and scaleLinear functions managing the layout. Data loads from a CSV file via d3.csv, and the x-axis uses d3’s format function to abbreviate large numbers (e.g., converting billions to “B”). Bar marks include tooltips showing the precise formatted population value, while axis ticks and labels are generated using custom React components.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed