{"version":"1.0","type":"rich","title":"Axes with React & D3","description":"This example visualizes the top ten most populous countries in 2020 using a horizontal bar chart, rendered as SVG. The code combines D3 v7 utilities—`csv`, `scaleBand`, `scaleLinear`, and `max`—to fetch and scale the data, while React’s `useState` and `useEffect` manage the asynchronous loading and component state. Axes are constructed manually with D3’s tick values and React’s JSX, drawing grid lines, tick labels, and bars within a translated `<g>` element. The chart updates entirely through React rendering, with no D3 selection or transition APIs involved.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/40233caa087841fc98c45479cfcfb7d3?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}