{"version":"1.0","type":"rich","title":"Making a bar chart with React and D3","description":"This example displays a horizontal bar chart of the five most populous countries, using data from a CSV file that is loaded via D3’s `csv` utility. React’s `useState` and `useEffect` hooks manage the asynchronous data loading, while the chart itself is rendered as SVG rectangles. The scales are created with `d3.scaleBand` and `d3.scaleLinear`, and the bar widths are proportional to the population values. The visualization is built with React and D3 v7, with the graphic element rotated by a degree value, though the rotation animation is commented out.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/44e879143ded4e07aa45bb041b80983c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}