Skip to main content
100%

Inputs of Data Viz (React)

✓ Published0🌍 Public
AAndres de la Garza
Last edited Mar 1, 2021
Created on Feb 28, 2021

This example demonstrates how to summarize a raw CSV dataset by displaying its size in kilobytes, row count, and column count as large monospaced text. Built with React and D3.js, it uses D3’s `csv` function to fetch and parse a dataset of Mexican states from a GitHub gist. A callback in a `useEffect` hook triggers the fetch, and the result is formatted via a custom `message` function that relies on `d3.csvFormat` to compute the data’s size. The rendered output appears in an SVG-based layout.

AI-generated description

React Interaction Template

MIT Licensed

Similar vizzes