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

Optimize output

parent f8a067e8
......@@ -19,7 +19,7 @@
<script>
{{ responsive_header("linePlot") }}
var data = [];
var x = {{ timeline_revisions|safe }};
{% for keyname in timeline %}
{% if "zebu" in keyname or "mu" in keyname %}
var trace = {type: "scatter"};
......@@ -27,8 +27,6 @@
var trace = {type: "scatter", visible: 'legendonly'};
{% endif %}
var None = null; // emulate Python None
var n = {{ timeline[keyname]|length }};
var x = {{ timeline_revisions|safe }};
var y = {{ timeline[keyname] }};
trace["x"] = x;
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