{% load i18n ui %}{% comment %} The Overlay chart (#276, Overlay the series; stations/overlay.py): the text summary, the chart in its frame (the legend of the drawn stations, each a categorical slot, --chart-1 to --chart-8, with "Choose the stations drawn" when there are more than eight; the chart drawn on the server, which charts.js replaces from #overlay-chart-data), the stations not shown and why, then the values table, the chart's table view. On its page (workspace_overlay.html) and in the pattern library. Context: overlay (an overlay.Overlay), chart_data (its payload), overlay_url (the page, for the form), code. {% endcomment %}

{{ overlay.summary }}

{% if overlay.chart %}
{% if overlay.too_many %}
{% translate "Choose the stations drawn" %} {% blocktranslate with drawn=overlay.drawn|length total=overlay.lines|length %}{{ drawn }} of {{ total }}{% endblocktranslate %}{% icon "chevron-down" %}

{% blocktranslate with total=overlay.lines|length trimmed %}The chart has eight colours, one for each station, and never repeats them, so it draws eight stations at most. Choose which; the table and the CSV have all {{ total }}.{% endblocktranslate %}

{% if overlay.chosen_too_many %}

{% translate "More than eight were chosen: the first eight are drawn." %}

{% endif %}
{% translate "Stations" %} {% for line in overlay.lines %} {% endfor %}
{% translate "Back to the first eight" %}
{% endif %}
{% blocktranslate with code=code asvar chart_region %}Chart of {{ code }} at each station{% endblocktranslate %}
{% with chart=overlay.chart %} {% for tick in chart.y_ticks %}{{ tick.text }}{% endfor %} {% if chart.zero is not None %}{% endif %} {{ chart.y_title }} {% for tick in chart.x_ticks %}{{ tick.text }}{% endfor %} {% for line in overlay.drawn %}{% if line.path %}{% endif %}{% for dot in line.dots %}{% endfor %}{% endfor %} {% endwith %}
{% include "components/chart_toolbar.html" with id="overlay-chart" %}
{{ chart_data|json_script:"overlay-chart-data" }} {% else %}

{% translate "No station has values of this index, so there is nothing to draw." %}

{% endif %} {% if overlay.left_out %}

{% translate "Not shown:" %} {{ overlay.left_out|join:"; " }}

{% endif %} {% if overlay.rows %} {% comment %}A div: the table's scrolling region is the landmark, named by the heading.{% endcomment %}

{% if overlay.units %}{% blocktranslate with code=code units=overlay.units %}{{ code }} at each station ({{ units }}){% endblocktranslate %}{% else %}{% blocktranslate with code=code %}{{ code }} at each station{% endblocktranslate %}{% endif %}

{% translate "Most recent first" %}
{% for line in overlay.lines %}{% endfor %} {% for row in overlay.rows %} {% for value in row.values %}{% endfor %} {% endfor %}
{% if overlay.step == "month" %}{% translate "Month" %}{% else %}{% translate "Year" %}{% endif %}{% if line.drawn %}{% endif %}{{ line.name }}{% if line.out_of_date %}{% translate "out of date" %}{% endif %}
{{ row.when }}{% if value %}{{ value }}{% else %}{% translate "missing" %}{% endif %}
{% endif %}