All examples By author By category About

tlfrd

Draggable Connected Dot Plot

Learning how to use d3-drag for an interactive "Make a guess" connected dot plot. Dragging is limited to the x-axis and the ends of the line cannot cross over (i.e. their positions cannot be switched). Clicking reset returns the dots to their original positions.