{"version":"1.0","type":"rich","title":"Refactored bar chart","description":"This example shows a horizontal bar chart displaying the top 10 countries by population for 2020, using data from a UN Population CSV file. It demonstrates a modular React component structure with separate files for axes, marks, and data loading. The chart renders as SVG using React elements, with a d3.scaleBand for the categorical y-axis and d3.scaleLinear for the quantitative x-axis. The code uses d3.csv for data fetching and parsing, and d3.max to compute the population domain.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8bff32326cdc471b8502c6b4d64c8143?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}