{"version":"1.0","type":"rich","title":"D3 Bar Chart with Margins","description":"This example shows a horizontal bar chart displaying the top 10 countries by 2020 population, loaded from a CSV file of UN population data. The visualization uses a React component with `useState` and `useEffect` to fetch data via `d3.csv`, then renders bars as SVG `<rect>` elements. Scales from `d3.scaleBand` and `d3.scaleLinear` map country names and population values to pixel positions within a defined margin area, achieved by translating a `<g>` group element. The chart updates asynchronously, showing a loading message until data arrives.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/93709ad266c74f52a57eeb92af5920fd?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}