{"version":"1.0","type":"rich","title":"Fork of Rendering data with react","description":"This example visualizes the top 10 countries by projected 2020 population from a UN dataset, using horizontal bars rendered as SVG rectangles. The React component loads the CSV with `d3.csv`, stores the parsed data in state via the `useState` and `useEffect` hooks, and maps it to a bar chart. Positioning and sizing rely on `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the quantitative x-axis, with the chart width fixed at 960 pixels. The code also imports unused D3 arc and pie functions, while the `message.js` file defines a utility for summarizing data size.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/abd7c94dfe9f48b0ac4a7fedf82a95cb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}