{% extends 'timeseer.html' %} {% from 'data-service-header.html' import data_service_breadcrumb, data_service_header with context %} {% from 'macros.html' import info_popover, visualize_score, visualize_series, visualize_series_name, menu_back %} {% block styles %} {% endblock %} {% block menu %} {{ menu_back(url_for('.series_score_report', binid=current_bin.db_id, sourcename=source_name)) }} {% endblock %} {% set title = 'Time series score comparison' %} {% block breadcrumb %} {{ data_service_breadcrumb(current_bin, [ ('Time series', url_for('data_services.series_score_report', binid=current_bin.db_id, sourcename=source_name)), title ]) }} {% endblock %} {% block main %} {% call data_service_header(current_bin, title) %} {% endcall %}

Select time series

{% if many_series|count > 0 %}
{% endif %}
{% if many_series|count > 0 %}
{% if source_name %} {% endif %} {% for series in many_series %} {% endfor %} {% for series in many_series %} {% endfor %}
Series name
{{ visualize_series(series) }}
{% else %}

No series in comparison.

{% endif %} {% if many_series|count < 8 %}
{% if source_name %} {% endif %} {% for series in many_series %} {% endfor %}
{% else %}

Can only compare up to 8 series.

{% endif %}
{% if many_series|count < 2 %}
Add at least two time series to compare.
{% else %} {% if all_results|count > 0 %} {% for kpi in weights.keys()|sort(attribute='name') %} {% for series in many_series|sort(attribute="source,name") %} {% endfor %} {% for weight in weights[kpi]|sort(attribute='name') if weight.name in score_metadata %} {% for series in many_series|sort(attribute="source,name") %} {% if series in all_results[weight.name] %} {{ visualize_score(all_results[weight.name][series].score) }} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ kpi.name }}
{{ visualize_series_name(series.name) }}
{{ weight.name|capitalize }} {{ info_popover(score_metadata[weight.name].short_help_text) }} -
{% endfor %} {% else %}
Analyze time series to compare results.
{% endif %} {% endif %}
{% endblock %}