{"version":"1.0","type":"rich","title":"Refactored bar chart","description":"This example shows a horizontal bar chart of population data for the top 10 countries in 2020, sourced from a CSV file via `d3.csv`. The visualization is built with React components, using `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the numeric x-axis, rendered as SVG rectangles. The chart is refactored into modular functions for the axes and marks, with data loading handled by a custom `useData` hook that parses the population field.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f9dc52167b054a69a758576302df603f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}