{"version":"1.0","type":"rich","title":"Refactored Bar Chart","description":"This example shows a horizontal bar chart of the top 10 countries by 2020 population, with the y-axis listing country names and the x-axis displaying population values. It loads data from a CSV file using `d3.csv` within a React hook (`useData`). The visualization uses `d3.scaleBand` and `d3.scaleLinear` to map data to SVG rectangles, with axes and marks extracted into reusable React components (`AxisBottom`, `AxisLeft`, `Marks`). React renders the SVG, and D3 v6 handles the data loading and scaling.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ac65da62476a40e5a8b4ba888e729e41?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}