{"version":"1.0","type":"rich","title":"Refactored Bar Chart","description":"This example shows a horizontal bar chart of the top 10 countries by population for 2020, rendered as SVG via React components. It loads CSV data from a GitHub-hosted file using D3’s `csv` utility, then defines separate axis and mark components (`AxisBottom`, `AxisLeft`, `Marks`) that leverage D3’s `scaleBand` and `scaleLinear` for positioning. The chart uses React’s state and `useData` hook to fetch and transform the data, displaying a loading message until the data arrives.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/523bdd45959f46118edcacdc4ef69238?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}