{"version":"1.0","type":"rich","title":"Ep22 UN Bar Chart with Margins","description":"This example displays a horizontal bar chart showing the 2020 populations of the first ten countries in a UN population dataset loaded from a GitHub CSV file. It illustrates how D3's `scaleBand` and `scaleLinear` APIs position the bars, with margins set on the SVG canvas via the `margin` object and a `g` element translation. React's `useState` and `useEffect` hooks load the data asynchronously, rendering a \"Loading...\" message until the data arrives. The SVG rendering includes axis tick labels generated from the scales.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/2d80b981c3724984a4a46a60fd6c07bb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}