{"version":"1.0","type":"rich","title":"[SO 41190304] Loading data from a second CSV (ES6)","description":"This example demonstrates how to load and merge data from two separate CSV files using D3 v4. It shows the process of reading file1.csv into an array, then using d3.map to create a lookup table keyed by the name column, and finally loading file2.csv to attach each person’s description to the corresponding record. The resulting merged data is displayed as formatted JSON in a pre element via d3.select and text. The code relies on d3.csv’s nested callback pattern and the d3.map API for efficient cross-referencing.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-039fd6e3f4f26fb2a53f031c5707472e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}