diff options
author | Dougal Maclaurin <dougalm@google.com> | 2019-10-01 15:28:11 -0400 |
---|---|---|
committer | Dougal Maclaurin <dougalm@google.com> | 2019-10-01 15:28:11 -0400 |
commit | 010ed37493f2e6804f91ae74c0945bd13860398e (patch) | |
tree | 53e49abec706e15983f89dce5cbffc7838f67d0e /static | |
parent | 87ff1e245a5e579115e3bd481ddffe50fea00882 (diff) |
Heatmap plots in html output
Diffstat (limited to 'static')
-rw-r--r-- | static/plot.js | 7 |
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]); +} |