GitLab will be upgraded to the 12.10.14-ce.0 on 28 Sept 2020 at 2.00pm (AEDT) to 2.30pm (AEDT). During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to us at N110 (b) CSIT building.

Commit 431782ea authored by Zixian Cai's avatar Zixian Cai

Optimize output

parent f8a067e8
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<script> <script>
{{ responsive_header("linePlot") }} {{ responsive_header("linePlot") }}
var data = []; var data = [];
var x = {{ timeline_revisions|safe }};
{% for keyname in timeline %} {% for keyname in timeline %}
{% if "zebu" in keyname or "mu" in keyname %} {% if "zebu" in keyname or "mu" in keyname %}
var trace = {type: "scatter"}; var trace = {type: "scatter"};
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
var trace = {type: "scatter", visible: 'legendonly'}; var trace = {type: "scatter", visible: 'legendonly'};
{% endif %} {% endif %}
var None = null; // emulate Python None var None = null; // emulate Python None
var n = {{ timeline[keyname]|length }};
var x = {{ timeline_revisions|safe }};
var y = {{ timeline[keyname] }}; var y = {{ timeline[keyname] }};
trace["x"] = x; trace["x"] = x;
trace["y"] = y; trace["y"] = y;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment