{"version":"1.0","type":"rich","title":"Refactored Bar Chart","description":"This example presents a horizontal bar chart that ranks the top ten countries by their 2020 population. It demonstrates how D3’s scale functions and React state can be combined to build a clean, interactive visualization. The chart uses a band scale for the categorical y-axis and a linear scale for the continuous x-axis. Axis tick marks and labels are generated with custom React components, while bars are drawn as SVG rectangles. Data is loaded from a remote CSV file using the D3 `csv` method and managed through React’s `useState` and `useEffect` hooks.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5ef03aa95baa438090a816d662ccde02?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}