Skip to main content
100%

Fixed size slider

✓ Published0🌍 Public
EEfratVil
Last edited Sep 16, 2017
Created on Sep 16, 2017

This example shows a line chart of 200 randomly generated data points, with a fixed-size brush slider that can only be moved side to side. The chart uses D3 v4 with SVG rendering, where the brush is created using `d3.brushX()` and initially positioned over a range of data points. The code explicitly removes the brush handles and overlay to prevent resizing, leaving only the movable brush window. The line is drawn with `d3.line()` and scaled using `d3.scaleLinear()`, while axes are added via `d3.axisBottom` and `d3.axisLeft`.

AI-generated description

Line chart with fixed size slider. Slider can only be moved from side to side.

Similar vizzes