🌍 Public
Viewing a saved revision (read-only)
2bd1a7c4b09241d6b07f5e694ac5a3a1
Fork of D3-timeline in D3.js V3 ref from (jiahuang)
JJason
Last edited Sep 21, 2023
Created on Sep 21, 2023
Forked from D3-timeline in D3.js V3 ref from (jiahuang)
A fork of jiahuang's d3-timeline, this example demonstrates a stacked, interactive timeline built with D3.js v3 and rendered as SVG. The chart visualizes labeled time intervals for patient statuses like "Waiting," "Vital," and "Doctor," with each segment colored and optionally labeled, and an accompanying legend. The code creates the timeline via `d3.timeline()` with stacked item rows, custom tick formatting using `d3.time.format`, and margins. SVG elements are appended manually for the legend, while the timeline itself handles axis and row rendering through its internal API.
AI-generated description