{"version":"1.0","type":"rich","title":"Refactored Bar Chart","description":"This example visualizes the population of the top 10 countries from UN Population 2019 data as a horizontal bar chart. The chart uses D3 scales (`scaleBand` and `scaleLinear`) to position bars and axes, while React components render the SVG elements. The code separates AxisBottom, AxisLeft, and Marks into distinct React components, uses a custom `useData` hook to load and parse the CSV with d3.csv, and supports blank ticks as axis labels. The visualization highlights a modular, refactored approach to building reusable chart components.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ef8c25d366a1451585dd687ed64e6483?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}