Interactive

Interactive charts respond to the reader, with legends, cursors, brushes and handles that select, filter or move what the chart shows.

LLMs

Toggle series

Pass interactiveColorLegend a controlledSignal of visible series so clicking a legend entry hides or shows that line on a fixed scale.

Linked table

Share one keyedSelection between the chart and a Table, so picking a point highlights its row and picking a row highlights its point.

Axis pointer

Add focusGuideX with focus set to group-x to snap a dashed line to the nearest month and list every industry in one tooltip.

Synchronized cursors

Stack two views with viewGrid and share their x scale, so one cursor tracks the same date in both years and fills the totals above.

Free cursor

Add continuousCursor to controls to follow any point in the plot without snapping to data, and steer it with two sliders.

Range brush

Add brushX with snapping values to drag a range over monthly closes and show the selected months' average and change below the chart.

Zoom and pan

Add zoomX with an extent and scaleExtent to zoom the time axis with the wheel, drag to pan, and reset to the full range.

Focus and context

Drag a brushX window on a small overview chart, or move a Slider, to choose the four months the large chart above shows.

Playback scrubber

Add handleX on a track below the axis to scrub a playhead through trading days, or press Play to step through them on a timer.

Streaming window

Append daily samples while the x domain stays locked, follows the latest week, or widens to show every sample, chosen with a Segmented.

Scrollable lanes

Draw tasks with rect on a wide chart inside a scrolling box, with lane names pinned beside it at the positions the band scale reports.

Editable event

Ride a handleX on the release lane with cross so dragging it moves the event's end date day by day while its start stays put.