{"version":"1.0","type":"rich","title":"Axes with React and D3","description":"This example shows a horizontal bar chart of the ten most populous countries in 2020, using React to render SVG elements and D3 for data loading and scales. The App component fetches a CSV from a GitHub gist using `d3.csv`, transforms the population values, and slices the top ten rows. React’s `useState` and `useEffect` manage the asynchronous data, while D3’s `scaleBand` and `scaleLinear` position the bars and axes. Custom tick marks for both axes are generated manually with D3’s `ticks` method, and the chart updates reactively once data arrives.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/02673e0521114b2d8b38f5289e0228a8?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}