Skip to main content
100%

Fork of Fifa World Cup Data

✓ Published1🌍 Public
MMartha Cash
Last edited Jan 23, 2023
Created on Jan 23, 2023

This visualization displays sleep efficiency data from Kaggle, showing a raw JSON representation of the parsed CSV content. The code first fetches the remote CSV file, then uses `d3.csvParse` to convert the text into an array of objects before displaying it as a formatted string inside a `<pre>` element. The visualization uses a state management pattern where `setState` triggers a re-render via `viz.js`, and the page loads data asynchronously with a `'LOADING'` placeholder state. The implementation relies on D3 v7 selection methods like `select` and `join`.

AI-generated description

Sleep efficency data sourced from: https://www.kaggle.com/datasets/equilibriumm/sleep-efficiency?select=Sleep_Efficiency.csv

Features include: Sex, deep sleep percentage, wake time, sleep time, REM sleep percentage, sleep duration, etc.

MIT Licensed

Similar vizzes