{# Correlations: one matrix with a method switch, next to the strongest pairs across all methods. Without JavaScript every method is shown in turn. #}
{% if methods | length > 1 %}
{% for m in methods %} {% endfor %}
{% endif %}
{% for item in items %} {% set m = methods[loop.index0] if loop.index0 < methods | length else {'key': loop.index0, 'label': item.name, 'note': ''} %}

{{ m.label }}

{% if item.sequence_type == 'tabs' and item.content['items'] | length == 2 %} {{ item.content['items'][0].render() }} {% if m.note %}

{{ m.note }}

{% endif %}
Show the values as a table {{ item.content['items'][1].render() }}
{% else %} {{ item.render() }} {% if m.note %}

{{ m.note }}

{% endif %} {% endif %}
{% endfor %}
{% if pairs %}

Strongest pairs · all methods

{% for p in pairs %} {% endfor %}
PairMethodStrengthValue
{{ p.x }} × {{ p.y }} {{ p.method }} {{ '%.2f' | format(p.value) }}

Ranked by absolute value across every computed method. The matrix on the left switches method.

{% endif %}