Display a csv message with d3 & react
✓ Published0🌍 Public
This example displays a CSV file’s metadata as a single large text message using React and D3. The page, styled with a centered 10em font, initially shows “loading…” until the CSS color names CSV finishes fetching from a GitHub gist. The React `App` component uses D3’s `csv` function to asynchronously load the data, then calls `d3.csvFormat(data).length` to compute the number of rows, which is rendered inside a `<div>`. The code relies on React’s `useState` hook and `ReactDOM.render` to update the view.
AI-generated descriptionA bare minimum React page that I made to feature the smiley face. Using d3.js library!
See also React Starter.
MIT Licensed