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
fcffe102
Commit
fcffe102
authored
Feb 27, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed caps in line histogram when using segmented loading. Removed the remaining $watch calls
parent
ced5f479
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
panels/histogram/module.js
+8
-3
panels/timepicker/module.html
+1
-1
panels/timepicker/module.js
+3
-5
panels/timepicker/refreshctrl.html
+2
-1
No files found.
panels/histogram/module.js
View file @
fcffe102
...
...
@@ -89,15 +89,20 @@ angular.module('kibana.histogram', [])
_
.
each
(
results
.
facets
,
function
(
v
,
k
)
{
// Null values at each end of the time range ensure we see entire range
if
(
_
.
isUndefined
(
$scope
.
data
[
k
])
||
_segment
==
0
)
{
var
data
=
[[
$scope
.
time
.
from
.
getTime
(),
null
]];
var
data
=
[[
$scope
.
time
.
to
.
getTime
(),
null
]];
}
else
{
var
data
=
$scope
.
data
[
k
].
data
}
var
segment_data
=
[];
_
.
each
(
v
.
entries
,
function
(
v
,
k
)
{
data
.
push
([
v
[
'time'
],
v
[
'count'
]])
segment_
data
.
push
([
v
[
'time'
],
v
[
'count'
]])
});
data
.
push
([
$scope
.
time
.
to
.
getTime
(),
null
])
data
=
segment_data
.
concat
(
data
)
if
(
_segment
==
$scope
.
panel
.
index
.
length
-
1
)
data
.
unshift
([
$scope
.
time
.
from
.
getTime
(),
null
])
var
series
=
{
data
:
{
...
...
panels/timepicker/module.html
View file @
fcffe102
...
...
@@ -53,7 +53,7 @@
<a
ng-click=
"set_mode('absolute')"
ng-class=
"{'strong': (panel.mode == 'absolute')}"
>
Absolute
</a>
|
<a
ng-click=
"set_mode('since')"
ng-class=
"{'strong': (panel.mode == 'since')}"
>
Since
</a>
<span
ng-hide=
"panel.mode == 'absolute'"
>
|
<input
type=
"checkbox"
ng-model=
"panel.refresh.enable"
>
Auto-refresh
<input
type=
"checkbox"
ng-model=
"panel.refresh.enable"
ng-change=
'refresh();'
>
Auto-refresh
<span
ng-class=
"{'ng-cloak': !panel.refresh.enable}"
>
every
<a
data-title=
"<small>Auto-refresh Settings</small>"
data-placement=
"bottom"
bs-popover=
"'panels/timepicker/refreshctrl.html'"
>
{{panel.refresh.interval}}s
</a>
.
</span>
...
...
panels/timepicker/module.js
View file @
fcffe102
...
...
@@ -83,10 +83,10 @@ angular.module('kibana.timepicker', [])
eventBus
.
register
(
$scope
,
"get_time"
,
function
(
event
,
id
)
{
eventBus
.
broadcast
(
$scope
.
$id
,
id
,
'time'
,
$scope
.
time
)
});
}
$scope
.
$watch
(
'panel.refresh.enable'
,
function
()
{
$scope
.
refresh
()});
$scope
.
$watch
(
'panel.refresh.interval'
,
function
()
{
$timeout
(
function
(){
$scope
.
set_interval
=
function
(
refresh_interval
)
{
$scope
.
panel
.
refresh
.
interval
=
refresh_interval
if
(
_
.
isNumber
(
$scope
.
panel
.
refresh
.
interval
))
{
if
(
$scope
.
panel
.
refresh
.
interval
<
$scope
.
panel
.
refresh
.
min
)
{
$scope
.
panel
.
refresh
.
interval
=
$scope
.
panel
.
refresh
.
min
...
...
@@ -98,8 +98,6 @@ angular.module('kibana.timepicker', [])
}
else
{
timer
.
cancel
(
$scope
.
refresh_timer
)
}
});
});
}
$scope
.
refresh
=
function
()
{
...
...
panels/timepicker/refreshctrl.html
View file @
fcffe102
<form
name=
"refreshPopover"
class=
'form-inline input-append'
style=
"margin:0px"
>
<label><small>
Interval (seconds)
</small></label><br>
<input
type=
"number"
class=
"input-mini"
ng-model=
"refresh_interval"
>
<button
type=
"button"
class=
"btn"
ng-click=
"
panel.refresh.interval=refresh_interval
;dismiss()"
><i
class=
"icon-ok"
></i></button>
<button
type=
"button"
class=
"btn"
ng-click=
"
set_interval(refresh_interval)
;dismiss()"
><i
class=
"icon-ok"
></i></button>
</form>
\ No newline at end of file
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