aboutsummaryrefslogtreecommitdiffstats
path: root/network-graph.js
diff options
context:
space:
mode:
authorTeddy Wing2013-10-27 21:51:24 -0400
committerTeddy Wing2013-10-27 21:51:24 -0400
commit52aea5637522d13f8e55a770140d137d23bbe718 (patch)
tree4d296adf06073b722623e9a9be04d39615235b30 /network-graph.js
parent23b2c720d149a7909f6f52d758609ff9c24a6c13 (diff)
downloadNo-More-GitHub-Neck-Cricks-for-Chrome-52aea5637522d13f8e55a770140d137d23bbe718.tar.bz2
Add code that rotates the canvas
Rotate the network graph using a WebKit CSS transform. Also change the width of the graph by setting the `height` attribute (since it's rotated) via JavaScript.
Diffstat (limited to 'network-graph.js')
-rw-r--r--network-graph.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/network-graph.js b/network-graph.js
new file mode 100644
index 0000000..7ccd534
--- /dev/null
+++ b/network-graph.js
@@ -0,0 +1,4 @@
+(function() {
+ var canvas = document.getElementById('ng').children[0];
+ canvas.setAttribute('height', 900);
+})(); \ No newline at end of file