aboutsummaryrefslogtreecommitdiffstats
path: root/tranches_insight/static/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'tranches_insight/static/main.js')
-rw-r--r--tranches_insight/static/main.js9
1 files changed, 6 insertions, 3 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";
}