{% set non_important_text = "color: lightgrey;" %} {% set important_text = "color: white !important;" %} {% set main_text = "color: #F6F5F5 !important;" %} {% set button_color = "#60CA9A !important" %} {% macro kpi_name_link(kpi_link_prefix, point) -%} {{point.kpi_name}} {%- endmacro %} {% macro subdim_name_link(point, value_only=false) -%} {% if value_only -%} {{ point.subdim_formatted_value_only() }}{% else -%} {{ point.subdim_formatted() }} {%- endif %} {%- endmacro %} {% macro button_with_link(text, link) -%} {{ text }} {%- endmacro %} {% macro anomaly_point_formatting(point, kpi_link_prefix=none) -%} {% set include_kpi_name = kpi_link_prefix is not none %} {% if point.percent_change is string %} ∿ Anomaly detected {% elif point.percent_change >= 0 %} ↑ {{ point.percent_change_formatted }} higher than expected {% else %} ↓ {{ point.percent_change_formatted }} lower than expected {% endif %} - {% if include_kpi_name -%} {{ kpi_name_link(kpi_link_prefix, point) }} {% endif %} {% if point.is_subdim %} {{ subdim_name_link(point) }} {% endif %} changed to {{point.y_readable}}{% if point.is_hourly -%} at {{ point.anomaly_time_only }}{%- endif %}. (Expected range: {{ point.yhat_lower_readable }} - {{ point.yhat_upper_readable }}). {% if point.relevant_subdims -%}