correctly init max and min values for x and y
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 16 May 2010 21:31:33 +0000 (23:31 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 16 May 2010 21:31:33 +0000 (23:31 +0200)
public/facet_graph.js

index 301a470..21fe41c 100644 (file)
@@ -1,8 +1,8 @@
 var data = {
-       min_x: 0,
-       max_x: 0,
-       min_y: 0,
-       max_y: 0,
+       min_x: Number.MAX_VALUE,
+       max_x: Number.MIN_VALUE,
+       min_y: Number.MAX_VALUE,
+       max_y: Number.MIN_VALUE,
        x_data: [],
        y_data: [],
        y_labels: [],