{"version":"1.0","type":"rich","title":"Refactoring - Barchart with margins and axes","description":"This example shows a horizontal bar chart of population data for the top 10 countries, using React to render SVG elements. The bars are created with `scaleBand` for the y-axis and `scaleLinear` for the x-axis, while custom components `AxisBottom` and `AxisLeft` generate the ticks and labels. Margins around the chart are defined in the main App component, and the data is loaded asynchronously from a CSV file using d3’s `csv` method. The bars include a tooltip via the SVG `title` element.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/faf3031db3e644b9ab3bb7d50f53530d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}