{"version":"1.0","type":"rich","title":"refactored bar chart","description":"This example visualizes the top 10 most populous countries in 2020 using a horizontal bar chart rendered with React and SVG. Each bar’s length represents the population, with tooltips showing the formatted value. The chart uses D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis, while custom React components (`AxisBottom`, `AxisLeft`, `Marks`) handle the ticks and bars. Data is loaded from a CSV via D3’s `csv` utility, and the axis label is positioned manually. The visualization demonstrates a clear separation of concerns by refactoring chart elements into modular, reusable components.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/89513ac671124233ba4ba0ba066d10f8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}