{"version":"1.0","type":"rich","title":"componentizing react bar 2 margins w/ axis","description":"This example shows a horizontal bar chart of the top 10 countries by 2020 population, rendered as SVG using React components. It demonstrates how to decompose a visualization into reusable pieces: the bottom axis, left axis, and bars are each separate React functions. The code uses D3's `scaleBand` for the categorical country axis and `scaleLinear` for the continuous population axis, with data fetched from a CSV URL. The margins and inner plot area are explicitly calculated, and the axes are drawn with white gridlines and blue text labels.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3f4c58b659bf41c19cf817904bb0bbe5?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}