Skip to main content
100%

loading the data for visualization

✓ Published0🌍 Public
Mmlscmoulika
Last edited May 26, 2021
Created on May 23, 2021
Forked from mouse pointer 1

This example shows a donut chart of all CSS named colors, with each slice filled by its corresponding color value from a CSV dataset. The visualization loads data asynchronously using D3’s `csv` method and stores it in React state via the `useState` and `useEffect` hooks. Each data row is rendered as an SVG path using `d3.arc`, positioned around a central point. While loading, the app displays a simple “loading…” message before rendering the complete chart.

AI-generated description

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

The link to learn more about data is as follows : click me to know more

MIT Licensed

Similar vizzes