{"version":"1.0","type":"rich","title":"Refactored Bar Chart","description":"This example presents a horizontal bar chart of United Nations population data for ten countries, sourced from a CSV file. It shows population values for 2020 using the D3 scale functions `scaleBand` and `scaleLinear` to map countries and populations to SVG coordinates. React components render the marks and axes, with `AxisBottom` drawing tick lines and labels, and `AxisLeft` displaying categorical labels. The chart is built declaratively, avoiding explicit loops, by mapping over scales and data within the component JSX.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ea2d2570e5854ab8a03abea6413b468d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}