Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Area graph for sleping time and population

Public visualization

Area graph for sleping time and population

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

This area graph visualizes the relationship between sleeping hours and age group count, using a smooth curve to show the distribution across the dataset. The chart combines a purple filled area with a black stroke line, with axes labeled for sleeping hours and age group count. It uses D3.js v5, specifically the `area`, `line`, `scaleTime`, and `scaleLinear` APIs, to generate the SVG rendering. The data is loaded from a CSV file hosted on GitHub Gist, with both the area and line paths created using the `curveBasis` interpolation for smooth transitions.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

Comments

Sign in to join the discussion.

MIT Licensed