Loading CSV Data with D3
✓ Published0🌍 Public
AAbechtel
Last edited Apr 18, 2015
Created on Apr 18, 2015
This example demonstrates how to load and parse a CSV file with D3.js, mapping each row to a JavaScript object. The ChicagoFDIC.csv dataset contains annual banking figures from 1966 to 2000, including columns for investment securities, real estate loans, total assets, and net interest income. Using d3.csv, the data is loaded asynchronously and rendered into an HTML table. The values, which include commas in the raw data, are parsed as numeric strings so they can be used in calculations or visual encodings. This example shows the foundational step in D3 of ingesting external data, with the table providing a clean tabular view of the parsed dataset before any chart is drawn.
AI-generated description