Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

area chart

Public visualization

area chart

0 stars0🌍 Public
Nnorangai
Last edited May 17, 2020
Created on Mar 25, 2020

This example shows an area chart of visual acuity data, with a gradient fill transitioning from green through yellow to red based on y-values. The chart encodes data points as white circles positioned along the area’s upper boundary, each with a title tooltip displaying its value. Built with D3 v5, the visualization uses `d3.scaleLinear` for both x/y positioning and color mapping, an `area()` generator with `curveMonotoneX` for the shape, and SVG `linearGradient` definitions to color the fill. A simple SVG rect outlines the plot area.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed