Commit 21469c76 authored by Zixian Cai's avatar Zixian Cai

Clean generated HTML

parent 431782ea
......@@ -20,16 +20,15 @@
{{ responsive_header("linePlot") }}
var data = [];
var x = {{ timeline_revisions|safe }};
var None = null; // emulate Python None
{% for keyname in timeline %}
{% if "zebu" in keyname or "mu" in keyname %}
var trace = {type: "scatter"};
{% else %}
var trace = {type: "scatter", visible: 'legendonly'};
{% endif %}
var None = null; // emulate Python None
var y = {{ timeline[keyname] }};
trace["x"] = x;
trace["y"] = y;
trace["y"] = {{ timeline[keyname] }};
trace["name"] = "{{ keyname }}";
data.push(trace);
{% endfor %}
......
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