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
f1bc8eeb
Commit
f1bc8eeb
authored
Feb 27, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made histogram show entire range during loading. Fixed since/absolute time ranges
parent
fcffe102
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
panels/histogram/module.js
+2
-5
panels/timepicker/module.js
+3
-2
No files found.
panels/histogram/module.js
View file @
f1bc8eeb
...
...
@@ -89,7 +89,7 @@ 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
.
to
.
getTime
(),
null
]];
var
data
=
[[
$scope
.
time
.
from
.
getTime
(),
null
],[
$scope
.
time
.
to
.
getTime
(),
null
]];
}
else
{
var
data
=
$scope
.
data
[
k
].
data
}
...
...
@@ -99,10 +99,7 @@ angular.module('kibana.histogram', [])
segment_data
.
push
([
v
[
'time'
],
v
[
'count'
]])
});
data
=
segment_data
.
concat
(
data
)
if
(
_segment
==
$scope
.
panel
.
index
.
length
-
1
)
data
.
unshift
([
$scope
.
time
.
from
.
getTime
(),
null
])
data
.
splice
.
apply
(
data
,[
1
,
0
].
concat
(
segment_data
))
var
series
=
{
data
:
{
...
...
panels/timepicker/module.js
View file @
f1bc8eeb
...
...
@@ -136,11 +136,12 @@ angular.module('kibana.timepicker', [])
}
$scope
.
time_check
=
function
(){
if
(
!
(
_
.
isUndefined
(
$scope
.
timepicker
)))
{
var
from
=
$scope
.
panel
.
mode
===
'relative'
?
time_ago
(
$scope
.
panel
.
timespan
)
:
Date
.
parse
(
$scope
.
timepicker
.
from
.
date
+
" "
+
$scope
.
timepicker
.
from
.
time
)
new
Date
(
Date
.
parse
(
$scope
.
timepicker
.
from
.
date
+
" "
+
$scope
.
timepicker
.
from
.
time
)
)
var
to
=
$scope
.
panel
.
mode
!==
'absolute'
?
new
Date
()
:
Date
.
parse
(
$scope
.
timepicker
.
to
.
date
+
" "
+
$scope
.
timepicker
.
to
.
time
)
new
Date
(
Date
.
parse
(
$scope
.
timepicker
.
to
.
date
+
" "
+
$scope
.
timepicker
.
to
.
time
)
)
}
else
{
var
from
=
$scope
.
panel
.
mode
===
'relative'
?
time_ago
(
$scope
.
panel
.
timespan
)
:
$scope
.
time
.
from
;
...
...
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