Skip to main content
100%

Draggable Y-axis

✓ Published1🌍 Public
Wwilliamkuo2000
Last edited Oct 19, 2022
Created on Oct 17, 2022
Forked from Hello HTML

This D3.js (v5) example demonstrates how to reorder a categorical axis by dragging its labels. It displays a draggable list of four Iris flower feature names (sepal length, sepal width, petal length, petal width) in a fixed-position panel. Users can drag and drop each item to change its position, which updates the underlying `axis` array. The implementation uses native HTML5 drag-and-drop events (`dragstart`, `dragover`, `drop`) and DOM manipulation to swap list items, providing a simple interface for interactive axis reordering.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes