Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Project Progress Francesca

Public visualization

Viewing a saved revision (read-only)

3cceed3ac8704464a006d0a2bd132013

Project Progress Francesca

0 stars0🌍 Public
Ffsajedi22
Last edited Feb 25, 2023
Created on Feb 25, 2023
Forked from Loading Data

This example shows the raw contents of a CSV file containing religious demographic data by country, displayed as a JSON-formatted string within a pre element. The visualization loads the Iris Dataset’s CSV structure—though the actual data lists religion percentages—and parses it using `d3.csvParse`. The current state is rendered via D3’s `select` and `join` methods, with asynchronous fetching triggered on initial load. The code demonstrates a simple state management pattern, where `setState` re-renders the visualization after data arrives.

AI-generated description

Loading a CSV file, the Iris Dataset.