Skip to main content

Module hit_test

Module hit_test 

Source
Expand description

Hit testing for chart series elements.

Provides functions to detect user clicks on candlesticks, bars, and lines.

Structs§

HitTestConfig
Configuration for series hit testing (tolerance, wick inclusion).

Constants§

BODY_WIDTH_RATIO
Body width ratio relative to bar spacing (from chart-rendering.md)

Functions§

hit_test_candles
Hit test candles to find which bar was clicked.
hit_test_line
Hit test a line series
hit_test_volume
Hit test volume bars to find which bar was clicked.