Skip to main content
100%

Fork of HTML Starter

✓ Published0🌍 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.

MIT Licensed

Similar vizzes