{"version":"1.0","type":"rich","title":"React and D3 read CSV file","description":"This example shows how to load and parse a CSV file using D3 within a React application, displaying the data in a simple SVG-based visualization. The code imports React hooks and D3 v5, using `d3.csv` to read data files containing GDP and population statistics from the World Development Indicators. Two separate heatmap instances are created, each with its own container and SVG element, demonstrating how the same visualization component can manage independent datasets. The approach relies on React's state management alongside D3's data-join and SVG manipulation methods to render the results.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/eb6833b878ed4a96a5392cea90dee771?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}