Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sleep and Health Metrics

Public visualization

Viewing a saved revision (read-only)

87139857413243e09cd4ba1380d63f03

Sleep and Health Metrics

0 stars0🌍 Public
BBashir Gulistani
Last edited Sep 10, 2024
Created on Sep 3, 2024

This visualization displays the first row of the sleep and health metrics dataset as raw JSON in a large monospace preformatted element. It shows a single record with all nine variables, including heart rate variability, body temperature, sleep duration, caffeine intake, and stress level, parsed as numeric values. The code imports data from a CSV file using a custom `data.csv` import, converts each value with the unary plus operator, and renders the result using `JSON.stringify` within the container’s innerHTML. The dataset originates from a synthetic Kaggle source for exploring sleep-related health patterns.

AI-generated description

The Penguins Dataset, loaded and parsed as CSV.

Fork and modify this template to import your data to VizHub and export it for use in other vizzes! To do that:

  • Fork this viz
  • Clear out the README
  • Update the README with details about your dataset (including original source)
  • Replace data.csv with your own data
  • Replace the parsing logic in index.js with your own
  • Set the custom URL so you can import from it easily

Challenge

  • Find 3 datasets on a topic you are interested in
  • For each of those, fork this viz and replace the data
  • Parse the quantitative attributes into numbers
  • Update README.md to indicate the original data source