Gets the unique identifier for the trace
The trace ID
ReadonlytraceThe trace's chart type, exposed without computing the full state.
Gets the current X value from the trace
The current X value or null if not available
Moves the trace to the position that matches the given X value
The X value to move to
True if the position was found and set, false otherwise
OptionalgetGet the current Y value from the trace. Optional method implemented by traces that support Y value preservation during layer switching.
The current Y value or null if not available
OptionalmoveMove to a specific X value and find the closest position with the given Y value. Optional method implemented by traces that support preserving both X and Y values during layer switching.
The X value to move to
The Y value to find the closest matching position for
true if the move was successful, false otherwise
Notify observers that the trace is out of bounds
Resets the trace to initial entry state
Computes the trace state at an arbitrary position without moving the cursor or notifying observers (used by monitor mode).
The row of the position to compute state for
The column of the position to compute state for
The trace state at the requested position
Notifies all observers with a specific state
The trace state to send to observers
Get all highlight SVG elements for this trace Used by HighlightService for high contrast mode
Array of all SVG elements, or empty array if none
Moves to the nearest point at (x, y) and returns directional guidance
toward the nearest data geometry in a single call. Combining the two
operations avoids running findNearestPoint twice per pointer event.
For ViolinKdeTrace, coordinates map to (violin index, y-value within KDE curve); for ViolinBoxTrace, to (section index, violin index) for vertical orientation, or the inverse for horizontal.
Screen-space x position in viewport pixels
Screen-space y position in viewport pixels
Guidance state, or null when unavailable for this plot level
OptionalgetGets extrema targets for navigation. Optional method implemented by traces that support extrema navigation.
Array of extrema targets
OptionalnavigateNavigate to a specific extrema target. Optional method implemented by traces that support extrema navigation.
The extrema target to navigate to
Interface representing a trace with navigation and observation capabilities