Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 drag test

Public visualization

Viewing a saved revision (read-only)

62d23e54bbc44534b6df9611141f9a71

Fork of D3 drag test

0 stars0🌍 Public
Ffilipwydra
Last edited Jul 7, 2022
Created on Mar 15, 2022
Forked from D3 drag test

Two draggable panes demonstrate interactive split-pane resizing using D3 v5 and React. The `d3.drag` API handles pointer events on a central divider, updating pane widths via the `setOffset` function, which recalculates each pane’s style width in pixels. Starting with the left pane at one-third of the viewport width, the layout responds live to dragging, with the container’s width read from its computed style. The example employs HTML/CSS for structure and styling, with D3’s `select`, `selectAll`, and `event` utilities coordinating the interaction.

AI-generated description

A bare minimum HTML page.

See also React Starter.