aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tranches_insight/static/main.js9
-rw-r--r--tranches_insight/templates/index.html4
2 files changed, 6 insertions, 7 deletions
diff --git a/tranches_insight/static/main.js b/tranches_insight/static/main.js
index b7b2a659..f4fe9b57 100644
--- a/tranches_insight/static/main.js
+++ b/tranches_insight/static/main.js
@@ -1,12 +1,16 @@
g1 = new Dygraph(document.getElementById("graph1"),
[], // path to CSV file
{ labels: [],
- title: "Correlation numbers" } // options
+ title: "Correlation numbers",
+ showRoller: true,
+ legend: "always"} // options
);
g2 = new Dygraph(document.getElementById("graph2"),
[], // path to CSV file
{ labels: [],
- title: "Risk numbers" } // options
+ title: "Risk numbers",
+ showRoller: true,
+ legend: 'always'} // options
);
function update_graph(g) {
@@ -15,7 +19,6 @@ function update_graph(g) {
s: document.getElementById('series').value,
t: document.getElementById('tenor').value,
g: document.getElementById('greek').value};
- console.log(g);
if( g.maindiv_.id == "graph1"){
payload['g'] = "skew";
}
diff --git a/tranches_insight/templates/index.html b/tranches_insight/templates/index.html
index c58e1d9a..d91f2730 100644
--- a/tranches_insight/templates/index.html
+++ b/tranches_insight/templates/index.html
@@ -38,10 +38,6 @@
<option value="el">Expected Loss</option>
</select>
</div>
-
-<div>
-
-</div>
<script type="text/javascript" src="{{ url_for('static', filename='main.js') }}"></script>
</body>
</html>