Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
e12f1312
Commit
e12f1312
authored
Apr 05, 2013
by
Zachary Tong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update module editor form
parent
12e540b2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
17 deletions
+26
-17
panels/map2/editor.html
+24
-14
panels/map2/module.html
+1
-1
panels/map2/module.js
+1
-2
No files found.
panels/map2/editor.html
View file @
e12f1312
...
@@ -17,25 +17,35 @@
...
@@ -17,25 +17,35 @@
</div>
</div>
</div>
</div>
<div
class=
"row-fluid"
>
<div
class=
"row-fluid"
>
<div
class=
"span3"
>
<div
class=
"span10"
>
<form>
<form
class=
"form-horizontal"
>
<h6>
Field
</h6>
<div
class=
"control-group"
>
<input
type=
"text"
class=
"input-small"
ng-model=
"panel.field"
>
<label
class=
"control-label"
for=
"panelfield"
>
Primary Field
</label>
</form>
<div
class=
"controls"
>
<input
type=
"text"
id=
"panelfield"
class=
"input"
ng-model=
"panel.field"
>
</div>
</div>
<div
class=
"span6"
>
<form
class=
"input-append"
>
<h6>
Query
</h6><input
type=
"text"
ng-model=
"panel.query"
>
</form>
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"span1"
>
<label
class=
"control-label"
for=
"panelsecondaryfield"
>
Secondary Field
</label>
<h6>
Map
</h6>
<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>
</div>
<div
class=
"row-fluid"
>
<div
class=
"row-fluid"
>
<div
class=
"span11"
>
<div
class=
"span11"
>
<h4>
Display Options
</h4>
<h4>
Display Options
</h4>
...
...
panels/map2/module.html
View file @
e12f1312
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
.hexagon
{
.hexagon
{
fill
:
none
;
fill
:
none
;
stroke
:
#000
;
stroke
:
#000
;
stroke-width
:
.
5
px
;
stroke-width
:
.
1
px
;
}
}
</style>
</style>
...
...
panels/map2/module.js
View file @
e12f1312
...
@@ -239,9 +239,8 @@ angular.module('kibana.map2', [])
...
@@ -239,9 +239,8 @@ angular.module('kibana.map2', [])
.
size
([
width
,
height
])
.
size
([
width
,
height
])
.
radius
(
scope
.
panel
.
display
.
binning
.
hexagonSize
);
.
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
;
});
var
binnedPoints
=
hexbin
(
points
).
sort
(
function
(
a
,
b
)
{
return
b
.
length
-
a
.
length
;
});
console
.
log
(
binnedPoints
);
var
radius
=
d3
.
scale
.
sqrt
()
var
radius
=
d3
.
scale
.
sqrt
()
.
domain
([
0
,
binnedPoints
[
0
].
length
])
.
domain
([
0
,
binnedPoints
[
0
].
length
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment