{"version":"1.0","type":"rich","title":"Axes with React & D3","description":"This example shows a horizontal bar chart ranking the top 10 countries by projected 2020 population, with SVG rendering driven by React’s declarative component model. D3 utilities—`csv` for loading the UN population dataset, `scaleBand` and `scaleLinear` for positioning bars, and `max` for domain computation—prepare the scales, while React maps the data to `<rect>` and `<text>` elements. The chart also displays x-axis tick lines and labels derived from `xScale.ticks()`, with margins applied via an SVG `<g>` transform.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/43f2f6a696f24b24b62a44f05c0a3d21?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}