{"version":"1.0","type":"rich","title":"Axes (Bar Chart) with React & D3 - Refactored","description":"This example shows a horizontal bar chart of the top 10 countries by population, using React to render SVG elements and D3 utilities for scales and data loading. The code imports `scaleBand` and `scaleLinear` from D3 to map country names and population values to pixel coordinates, while the `useData` hook fetches a CSV from a GitHub gist using D3’s `csv` method. Reusable React components define the axes and marks, with the bottom axis generating tick lines via `xScale.ticks()` and the left axis positioning labels from the band scale’s domain.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/649ff67ccc9142478b5a9a5f9891db70?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}