Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of HTML Starter

Public visualization

Viewing a saved revision (read-only)

823a7cfbdb3747df987689bbeac13d9a

Fork of HTML Starter

0 stars0🌍 Public
Mmayuri-gosapphire
Last edited Jul 24, 2021
Created on Jul 24, 2021
Forked from HTML Starter

This example demonstrates a custom time-based slider widget built with D3.js v5, rendered as an SVG element. The slider allows users to drag a handle across a timeline to select a date range, with tick marks displaying formatted dates or times depending on the duration. It uses `d3.scaleTime` for mapping dates to pixel positions and a custom drag interaction to update the handle. The code also includes a `triggerEvent` function that dispatches a message when the slider position changes, though the surrounding application logic is not shown.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.