{"version":"1.0","type":"rich","title":"Ep23 Bar Chart ReactD3 Refactor","description":"This example shows a horizontal bar chart of the top 10 countries by 2020 population, rendered as SVG elements in a React component. The chart uses D3 scales (`scaleBand` and `scaleLinear`) to map country names and population values to pixel coordinates, while React components (`AxisBottom`, `AxisLeft`, `Marks`) handle the rendering of axes and bars. Data is loaded asynchronously from a CSV file using D3’s `csv` method. The code demonstrates a refactored pattern where D3 handles scales and data loading, while React manages the DOM updates.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6a056354628e43cc82527721e9e298c0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}