Skip to main content
100%

Fork of D3 drag test

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

MIT Licensed

Similar vizzes