Commit e12f1312 by Zachary Tong

Update module editor form

parent 12e540b2
......@@ -17,25 +17,35 @@
</div>
</div>
<div class="row-fluid">
<div class="span3">
<form>
<h6>Field</h6>
<input type="text" class="input-small" ng-model="panel.field">
</form>
<div class="span10">
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="panelfield">Primary Field</label>
<div class="controls">
<input type="text" id="panelfield" class="input" ng-model="panel.field">
</div>
<div class="span6">
<form class="input-append">
<h6>Query</h6><input type="text" ng-model="panel.query">
</form>
</div>
<div class="span1">
<h6>Map</h6>
<div class="control-group">
<label class="control-label" for="panelsecondaryfield">Secondary Field</label>
<div class="controls">
<input type="text" id="panelsecondaryfield" class="input"
ng-model="panel.secondaryfield"
data-placement="right"
placeholder="Optional"
bs-tooltip="'Allows aggregating on Primary field, while counting stats on a secondary (e.g. Group By user_id, Sum(purchase_price)).'" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="panelquery">Query</label>
<div class="controls">
<input type="text" id="panelquery" class="input" ng-model="panel.query">
</div>
</div>
</form>
</div>
</div>
<div class="row-fluid">
<div class="span11">
<h4>Display Options</h4>
......
......@@ -19,7 +19,7 @@
.hexagon {
fill: none;
stroke: #000;
stroke-width: .5px;
stroke-width: .1px;
}
</style>
......
......@@ -239,9 +239,8 @@ 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])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment