{# Display histograms here #}

OVERWATCH Trending


{# NOTE: We cannot use loop.first because we loop through many empty histGroups! #} {# See: https://stackoverflow.com/a/4880398 #} {% set firstLoopCompleted = [] %} {% for subsystemName, subsystem in trendingContainer.trendingObjects.items() %} {% if selectedHistGroup == subsystemName or (selectedHistGroup == None and firstLoopCompleted == []) %} {% for name, trendingObject in subsystem.items() %} {% if selectedHist == name or selectedHist == None %} {# Effective increments our counter #} {% if firstLoopCompleted.append(1) %}{% endif %}

{{ trendingObject.prettyName }}

{# Set histogramContainer style when we using jsRoot to set the proper shadows #} {%- set histogramContainerClasses = "histogramContainerStyle" -%}
{% if jsRoot != True %} {{ name }} {% else %} {# Provide indication that we are loading jsroot content #} {# It will disappear once jsroot loads the histogram #}

Loading...

{% endif %}
{% endif %} {% endfor %} {% endif %} {% endfor %}