summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorDougal Maclaurin <dougalm@google.com>2019-10-01 15:28:11 -0400
committerDougal Maclaurin <dougalm@google.com>2019-10-01 15:28:11 -0400
commit010ed37493f2e6804f91ae74c0945bd13860398e (patch)
tree53e49abec706e15983f89dce5cbffc7838f67d0e /static
parent87ff1e245a5e579115e3bd481ddffe50fea00882 (diff)
Heatmap plots in html output
Diffstat (limited to 'static')
-rw-r--r--static/plot.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/static/plot.js b/static/plot.js
new file mode 100644
index 00000000..34ad3d99
--- /dev/null
+++ b/static/plot.js
@@ -0,0 +1,7 @@
+
+nodes = document.getElementsByClassName("heatmap");
+for (var i = 0; i < nodes.length; i++) {
+ var plot_div = nodes[i];
+ var data = JSON.parse(plot_div.childNodes[0].innerHTML);
+ Plotly.plot(plot_div, [data]);
+}