Skip to main content
Public

Share visualization

Loading preview…

Please work

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Please work

1
Qqtrfx
Last edited Jun 17, 2023
Created on Jun 17, 2023
Forked from Mouse Follower

This example demonstrates a minimal React and D3 integration, displaying metadata about a dataset loaded from a CSV file. It shows the file size in kilobytes, row count, and column count as large text. The code uses D3’s `csv` utility to fetch data from a remote URL, stores it in React state via the `useState` and `useEffect` hooks, and conditionally renders a loading message or the computed statistics. The message is generated using `d3.csvFormat` and string concatenation within a custom `message` module.

AI-generated description

A program that loads in some data using D3 utilities, and uses React state to keep track of the data.

Comments

Sign in to join the discussion.

MIT Licensed