Skip to main content

render_footprint_statistics

Function render_footprint_statistics 

Source
pub fn render_footprint_statistics(
    painter: &Painter,
    mapping: &ChartMapping,
    bars: &[Bar],
    flow: &Footprint,
    text_color: Color32,
)
Expand description

Draws a compact per-bar statistics table under the footprint at the same x coordinates. Rows show total, bid, ask, delta, minimum and maximum intrabar delta, cumulative delta, delta percentage, and ask/bid ratio (undefined for zero volume or bid). Bars before Footprint::complete_from get no column and no share of the cumulative delta. Shared labels occupy the left margin. Numeric columns stay aligned with their bars and use unabbreviated volume values when they fit, then compact units. Percentages have one decimal and ask/bid ratios two decimals. A column cut by the margin or plot edge is omitted as a whole. When the complete table cannot fit at a readable size, a zoom-in or resize notice replaces it; values remain in FootprintBar. A view without complete executions reports that statistics are unavailable.