{"version":"1.0","type":"rich","title":"Axes with React & D3","description":"This example shows a horizontal bar chart of the ten most populous countries in 2020, with axes rendered as SVG elements. The code uses React’s `useState` and `useEffect` hooks to load CSV data via `d3.csv`, then builds linear and band scales with `d3.scaleLinear` and `d3.scaleBand`. Ticks and labels are generated manually using `xScale.ticks()` and the scale domains, while bars are drawn as `<rect>` elements.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/008a7125416b4372854781af49de7feb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}