🌍 Public
Viewing a saved revision (read-only)
887854d9cd3e4864b9f8207ef69aa50f
Mouse Follower with data
This example demonstrates loading a CSV dataset with D3 and displaying the loading status through a React component. It shows how D3’s `csv` function fetches data from a remote URL containing CSS color names, while React’s `useState` and `useEffect` hooks manage the asynchronous state. The visualization renders a text message as an SVG element, displaying the number of rows and columns once loaded, updating from "loading..." as data arrives. The project combines React 16.9, D3 v7, and uses a plain HTML pre tag for text output rather than a chart.
AI-generated descriptionA programme that follows the mouse