{"version":"1.0","type":"rich","title":"Fork of Refactored Bar Chart","description":"This example shows a horizontal bar chart of the top 10 countries by population in 2020, loading data from a CSV file and rendering it as SVG in a React app. The chart uses React function components for modular pieces: `Marks` renders rectangles using a band scale for countries and a linear scale for population, while `AxisBottom` and `AxisLeft` generate tick marks and labels. The code leverages D3 v5 utilities like `scaleBand`, `scaleLinear`, `max`, and `csv`, with React hooks (`useState`, `useEffect`) managing data fetching via the custom `useData` hook.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d7f510a8580a42dfa6561a60d98763a2?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}