D3 range selecter
This example shows an interactive range selector built with D3 v7, displayed as a horizontal slider with two triangular drag handles positioned over an axis. Users adjust the left and right handles to select a numeric interval between a minimum of 34 and a maximum of 100, with the current range logged to the console on release. The visualization renders in SVG and uses d3.scaleLinear, d3.axisBottom, d3.drag, and d3.symbolTriangle to manage the scale, ticks, and handle movement. The handles are constrained so they cannot cross, and their positions are recalculated using scale inversion.