about summary refs log tree commit diff
path: root/wqflask/wqflask/static/packages/novus-nvd3-d51729c/examples/line.html
diff options
context:
space:
mode:
authorLei Yan2016-02-25 16:42:15 +0000
committerLei Yan2016-02-25 16:42:15 +0000
commite55f38a72d47fbdf5f652a08e8da1db78f1dcdb5 (patch)
tree68161b76858cf72f7a7b5576de6384042e214d8e /wqflask/wqflask/static/packages/novus-nvd3-d51729c/examples/line.html
parent7263c52a7d903a2dbdd5d05411821ec960961b4d (diff)
parentece60a2d25ed71980121ac1c1854c3ab3514f453 (diff)
downloadgenenetwork2-e55f38a72d47fbdf5f652a08e8da1db78f1dcdb5.tar.gz
Merge /home/zas1024/gene
Diffstat (limited to 'wqflask/wqflask/static/packages/novus-nvd3-d51729c/examples/line.html')
-rwxr-xr-xwqflask/wqflask/static/packages/novus-nvd3-d51729c/examples/line.html96
1 files changed, 0 insertions, 96 deletions
diff --git a/wqflask/wqflask/static/packages/novus-nvd3-d51729c/examples/line.html b/wqflask/wqflask/static/packages/novus-nvd3-d51729c/examples/line.html
deleted file mode 100755
index 917437e3..00000000
--- a/wqflask/wqflask/static/packages/novus-nvd3-d51729c/examples/line.html
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html>
-<meta charset="utf-8">
-<link href="../src/nv.d3.css" rel="stylesheet" type="text/css">
-<style>
-
-body {
-  overflow-y:scroll;
-}
-
-</style>
-<body>
-
-<svg id="test1"></svg>
-
-<script src="../lib/d3.v3.js"></script>
-<script src="../nv.d3.js"></script>
-<script src="../src/models/legend.js"></script>
-<script src="../src/models/line.js"></script>
-<script src="../src/utils.js"></script>
-<script>
-
-
-
-//Format A
-nv.addGraph({
-  generate: function() {
-    var width = nv.utils.windowSize().width - 40,
-        height = nv.utils.windowSize().height - 40;
-
-    var chart = nv.models.line()
-                .width(width)
-                .height(height)
-                .margin({top: 20, right: 20, bottom: 20, left: 20})
-
-
-    d3.select('#test1')
-      .attr('width', width)
-      .attr('height', height)
-      .datum(sinAndCos())
-      .call(chart);
-
-    return chart;
-  },
-  callback: function(graph) {
-    window.onresize = function() {
-      var width = nv.utils.windowSize().width - 40,
-          height = nv.utils.windowSize().height - 40,
-          margin = graph.margin();
-
-
-      if (width < margin.left + margin.right + 20)
-        width = margin.left + margin.right + 20;
-
-      if (height < margin.top + margin.bottom + 20)
-        height = margin.top + margin.bottom + 20;
-
-
-      graph
-         .width(width)
-         .height(height);
-
-      d3.select('#test1')
-        .attr('width', width)
-        .attr('height', height)
-        .call(graph);
-    };
-  }
-});
-
-
-
-function sinAndCos() {
-  var sin = [],
-      cos = [];
-
-  for (var i = 0; i < 100; i++) {
-    sin.push({x: i, y: Math.sin(i/10)});
-    cos.push({x: i, y: .5 * Math.cos(i/10)});
-  }
-
-  return [
-    {
-      values: sin,
-      key: "Sine Wave",
-      color: "#ff7f0e"
-    },
-    {
-      values: cos,
-      key: "Cosine Wave",
-      color: "#2ca02c"
-    }
-  ];
-}
-
-
-</script>