Creates a new Candlestick instance from a MAIDR layer
The MAIDR layer containing candlestick data
Protected ReadonlyobserversProtected ReadonlyidProtected ReadonlytypeProtected ReadonlytitleProtected ReadonlyxProtected ReadonlyyProtected ReadonlyfillProtected ReadonlylayerProtected ReadonlysupportsAbstract property that subclasses must implement to indicate extrema support
Protected ReadonlymovableProtected ReadonlyhighlightProtectedhighlightProtected ReadonlynavigationGets the current state of the trace including audio, braille, text, and highlight information.
The current TraceState
ProtectedoutProtectedhighlightProtectedhasProtectedvaluesGets the 2D array of candlestick values
Array of candlestick values for all segments
ProtectedaudioProtectedbrailleProtectedtextProtecteddimensionProtectedgetGets safe row and column indices to prevent accessing undefined values
Object with safe row and column indices
Registers an observer to receive state updates.
The observer to add
Removes an observer from receiving state updates.
The observer to remove
Notifies all registered observers with the current state.
Notifies observers that an out-of-bounds condition occurred.
ProtectedcompareUtility function to compare point values for rotor functionality
boolean value
Resets the trace to initial entry state
ProtectedfinalizeCommon post-navigation cleanup that should be called by subclasses after they update their internal state
Checks if this plot supports extrema navigation.
True if extrema navigation is supported
Gets the unique identifier for this trace.
The trace ID
Moves to the nearest point at the specified coordinates (used for hover functionality).
The x-coordinate
The y-coordinate
Checks if the specified coordinates are within bounds of the element.
The x-coordinate
The y-coordinate
Object containing the SVG element and its position
The SVG element to check bounds against
The row position of the element
The column position of the element
True if the point is in bounds, false otherwise
ProtectedupdateUpdates visual position for point highlighting and segment position
ProtectedhandleHandles initial entry into the candlestick chart, setting default position
Moves navigation position one step in the specified direction
Direction to move (UPWARD, DOWNWARD, FORWARD, BACKWARD)
Checks if movement to the target position or direction is possible
Target position array or movement direction
True if movement is possible, false otherwise
Cleans up resources and disposes of the candlestick instance
ProtectedmapMaps candlestick selectors to 2D array of SVG elements for highlighting
CSS selectors or structured candlestick selectors
2D array of SVG elements or null if no selectors provided
Gets the current candlestick trend for audio palette selection
The trend of the current candlestick point
Gets the current X value from the candlestick trace
The current X value or null if not available
Moves the candlestick 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
Gets extrema targets for the current candlestick trace with labels and descriptions
Array of extrema targets for navigation
Navigates to a specific extrema target
The extrema target to navigate to
Moves to the next value in the specified direction that matches the comparison type
Direction to search (left or right)
Comparison type (lower or higher)
True if a matching value was found and moved to
Moves upward between segments within a candle in rotor mode
True if the move was successful
Moves downward between segments within a candle in rotor mode
True if the move was successful
ProtectedmapMaps SVG elements to their center coordinates for click navigation
Array of center coordinates with row/col indices or null
Finds the nearest candlestick point to the given coordinates
X coordinate
Y coordinate
Nearest point information or null
Interface representing a trace with navigation and observation capabilities