From e12f131271305d761a6fc97fc00813b8775ded86 Mon Sep 17 00:00:00 2001 From: Zachary Tong Date: Fri, 5 Apr 2013 14:03:33 -0400 Subject: [PATCH] Update module editor form --- panels/map2/editor.html | 40 +++++++++++++++++++++++++--------------- panels/map2/module.html | 2 +- panels/map2/module.js | 5 ++--- 3 files changed, 28 insertions(+), 19 deletions(-) diff --git a/panels/map2/editor.html b/panels/map2/editor.html index 34de0f2b3df..aff91cd78ef 100644 --- a/panels/map2/editor.html +++ b/panels/map2/editor.html @@ -17,25 +17,35 @@ +
-
-
-
Field
- +
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
- -
-
-
Query
-
-
- -
-
Map
-
-

Display Options

diff --git a/panels/map2/module.html b/panels/map2/module.html index cb7551d3980..041da5ad6d2 100644 --- a/panels/map2/module.html +++ b/panels/map2/module.html @@ -19,7 +19,7 @@ .hexagon { fill: none; stroke: #000; - stroke-width: .5px; + stroke-width: .1px; } diff --git a/panels/map2/module.js b/panels/map2/module.js index 6754184a4a6..be7b0f7ff3e 100644 --- a/panels/map2/module.js +++ b/panels/map2/module.js @@ -239,15 +239,14 @@ angular.module('kibana.map2', []) .size([width, height]) .radius(scope.panel.display.binning.hexagonSize); + //bin and sort the points, so we can set the various ranges appropriately var binnedPoints = hexbin(points).sort(function(a, b) { return b.length - a.length; }); - console.log(binnedPoints); - var radius = d3.scale.sqrt() .domain([0, binnedPoints[0].length]) .range([0, scope.panel.display.binning.hexagonSize]); - + var color = d3.scale.linear() .domain([0,binnedPoints[0].length]) .range(["white", "steelblue"])