{"version":"1.0","type":"rich","title":"Fork of Rendering Data with React & D3","description":"This example displays population data for the top 10 countries in 2020 as horizontal bars rendered in SVG via React. D3 utilities handle data loading and scaling: `d3.csv` fetches the dataset, while `scaleBand` and `scaleLinear` map country names and population values to screen coordinates. React’s `useState` and `useEffect` manage the asynchronous data flow. Each bar is a `<rect>` element whose width reflects the population, with the country name positioned along the y-axis. The code also includes a commented-out alternative for drawing arcs with `d3.arc`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3ae7275dab654ebdb467ee5bc10ade7e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}