Skip to main content

Module selection_render

Module selection_render 

Source
Expand description

Series selection rendering - visual feedback when series is selected.

Selection style: small circles on the data points at regular intervals.

Structs§

SelectionHandleConfig
Configuration for the donut-style selection dots rendered on a selected series.

Constants§

SELECTION_DOT_DEFAULT_INTERVAL
Default interval between dots (bars)
SELECTION_DOT_INNER_RADIUS
Inner radius of selection dots (donut hole)
SELECTION_DOT_MAX_INTERVAL
Maximum interval between dots (bars)
SELECTION_DOT_MIN_INTERVAL
Minimum interval between dots (bars)
SELECTION_DOT_OUTER_RADIUS
Outer radius of selection dots (donut outer circle)
SELECTION_DOT_TARGET_GAP
Target pixel gap between selection dots (adjusts with zoom)

Functions§

calculate_dot_interval
Calculate dynamic dot interval based on bar spacing (zoom level).
render_candle_selection_dots
Render selection dots on candle data points.
render_series_selection_on_points
Render selection dots on data points