Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Area graph for sleping time and population

Public visualization

Viewing a saved revision (read-only)

5ce2b35beb1f484796f498a483b26b06

Fork of Area graph for sleping time and population

0 stars3🌍 Public
VVineela Reddy
Last edited Apr 9, 2023
Created on Apr 9, 2023

This example displays an area graph showing the relationship between sleeping hours and age group count. The visualization uses a smoothed curve to represent the data, with the area beneath the line filled in purple. The chart includes labeled axes for sleeping hours and age group count, with a title and gridlines. The code loads CSV data from a GitHub gist and uses d3.scaleTime, d3.scaleLinear, d3.axisBottom, d3.axisLeft, d3.line, and d3.area with d3.curveBasis to render the SVG graphic.

AI-generated description