{"version":"1.0","type":"rich","title":"Axes with React and D3","description":"A horizontal bar chart displays the population of the ten most populous countries, with country names on the y-axis and population values on the x-axis. The chart is built with React state managing the data loaded via `d3.csv`, and D3’s `scaleBand` and `scaleLinear` control the positions and lengths of the rectangles. A `d3.axis` style grid of tick lines and labels is manually rendered by mapping over `xScale.ticks()`, while `useEffect` fetches the CSV and slices the first ten rows. The visualization renders as an SVG with margins defined in React.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d74056adbc2543d28a41eb2c15b043ad?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}