diff --git a/website/templates/school_template.html b/website/templates/school_template.html index 4368af0..2ae4bf2 100644 --- a/website/templates/school_template.html +++ b/website/templates/school_template.html @@ -87,17 +87,74 @@

Cycle Progress

Our graphs are interactive! Click and drag your mouse across the graph to zoom in. Double click to zoom out. Click on a status in the legend to hide it, or double-click to highlight only that status.
+ +
+
+ {% if (reg_info['cycle_status_json'] and reg_info['cycle_status_json_prev']) or (phd_info['cycle_status_json'] and phd_info['cycle_status_json_prev']) %} +
+ +
+
+ +
+ {% endif %} +
+
+
Current Cycle Status ({{ valid_cycles[0]-1 }}-{{ valid_cycles[0] }})
{% if reg_info['cycle_status_json'] %}
@@ -116,7 +173,10 @@
{{ valid_cycles[1]-1 }}-{{ valid_cycles[1] }} Cycle
.then(response => response.json()) .then(data => { data.config = {'responsive': true, 'displaylogo': false, 'displayModeBar': false}; - Plotly.newPlot('reg_status_prev', data); + Plotly.newPlot('reg_status_prev', data).then(() => { + window._cyclePlotReady.reg_prev = true; + _tryRegisterRegSync(); + }); }) .catch(error => console.log(error)); @@ -131,11 +191,48 @@
Current Cycle Status ({{ valid_cycles[0]-1 }}-{{ valid_c {% if phd_info['cycle_status_json'] %}
@@ -153,7 +250,10 @@
{{ valid_cycles[1]-1 }}-{{ valid_cycles[1] }} Cycle
.then(response => response.json()) .then(data => { data.config = {'responsive': true, 'displaylogo': false, 'displayModeBar': false}; - Plotly.newPlot('phd_status_prev', data); + Plotly.newPlot('phd_status_prev', data).then(() => { + window._cyclePlotReady.phd_prev = true; + _tryRegisterPhdSync(); + }); }) .catch(error => console.log(error)); @@ -599,5 +699,4 @@
Stats and Outcomes
-{% endblock %} - +{% endblock %} \ No newline at end of file