{# Inputs: account_points: list[AccountValuePoint] -- selected-period series lifetime_account_points: list[AccountValuePoint] -- full lifetime series; falsy in Lifetime view benchmark_points: list[BenchmarkPoint] benchmark_symbol: str period_label: str -- e.g. "YTD 2025", "2024", "Lifetime" current_year: int -- for ytd snap detection available_years: list[int] -- snap targets for the brush #} {% set has_data = account_points and account_points|length >= 2 %} {% set missing_dates_count = account_points|selectattr('account_value', 'none')|list|length if account_points else 0 %} {% set _lap = lifetime_account_points | default(none) %} {% set has_brush = _lap and _lap|length >= 2 %}