Skip to main content
100%

Loading CSV Data with D3

✓ Published0🌍 Public
Aacurvadegauss
Last edited Apr 7, 2015
Created on Apr 7, 2015

This example demonstrates loading and parsing an external CSV dataset with D3. The page displays a static SVG titled "International Trade Exports" featuring two decorative ellipses and a text label, while the D3 code uses the d3.csv() method to load internationaltradeexports.csv. The CSV contains export data for multiple countries from 1994 to 2013, which is transformed into an array of JSON objects and logged to the browser console for verification. The visualization itself is a simple, stylized SVG graphic with a beige background, a green ellipse, a cyan ellipse, and bold charcoal text, illustrating the initial step of reading CSV data into D3 for subsequent visualization.

AI-generated description

Similar vizzes