aboutsummaryrefslogtreecommitdiffstats
path: root/tranches_insight/templates
diff options
context:
space:
mode:
Diffstat (limited to 'tranches_insight/templates')
-rw-r--r--tranches_insight/templates/index.html31
1 files changed, 13 insertions, 18 deletions
diff --git a/tranches_insight/templates/index.html b/tranches_insight/templates/index.html
index a797bea4..d3cd66a3 100644
--- a/tranches_insight/templates/index.html
+++ b/tranches_insight/templates/index.html
@@ -6,23 +6,18 @@
</head>
<body>
<div id="graphdiv2"
- style="width:800px; height:500px;"></div>
-<script type="text/javascript">
- g2 = new Dygraph(document.getElementById("graphdiv2"),
- [], // path to CSV file
- { labels: {{labels|tojson|safe}},
- title: "Correlation numbers" } // options
- );
- $.getJSON("_data",
- {i:"IG",s:9, t:"10yr"},
- function(data){
- var newdata = data["data"].map(function(e){
- f = e.slice(1);
- f.unshift(new Date(e[0]));
- return f});
- console.log(newdata);
- g2.updateOptions({'file': newdata});
- })
-</script>
+ style="width:800px; height:500px;">
+</div>
+<div>
+ <select id="dropdown">
+ {% for index in index_list %}
+ <option value="{{"{0}.{1}.{2}".format(*index)}}"
+ {% if loop.index==1 %}selected="selected"{% endif %}>
+ {{"{0}{1} {2}".format(*index)}}
+ </option>
+ {% endfor %}
+ </select>
+</div>
+<script type="text/javascript" src="{{ url_for('static', filename='main.js') }}"></script>
</body>
</html>