{"version":"1.0","type":"rich","title":"Bar chart Load data with react d3 ark","description":"This example shows a horizontal bar chart displaying the top 10 countries by population for 2020, with each bar’s length proportional to population values. The chart loads CSV data from a GitHub gist using D3’s `csv` method within a custom `useData` React hook, which manages the asynchronous data fetching via `useState` and `useEffect`. The visualization then maps the data using D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis, rendering the bars as SVG `<rect>` elements within a React component.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6041794949294442a675a0824df950c7?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}