Gets the unique identifier for the trace
The trace ID
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
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
Move the active point within this trace to the given (x, y) viewport coordinates. Implemented by all concrete traces via AbstractPlot / AbstractTrace, and used by Context for hover / click navigation.
The x-coordinate in viewport pixels to move to.
The y-coordinate in viewport pixels to move to.
Behavior:
Violin Plot Specific Behavior:
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