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
7252800c
Commit
7252800c
authored
Aug 26, 2013
by
Spencer Alger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restored the "required_times" functionality so that stacking will work as expected.
parent
0af25497
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
panels/histogram/module.js
+5
-5
No files found.
panels/histogram/module.js
View file @
7252800c
...
...
@@ -392,9 +392,9 @@ angular.module('kibana.histogram', [])
// so that the stacking happens in the proper order
var
required_times
=
[];
if
(
scope
.
panel
.
bars
&&
stack
)
{
required_times
=
Array
.
prototype
.
concat
.
apply
([],
_
.
map
(
scope
.
data
,
function
(
series
)
{
return
series
.
time_series
.
getOrderedTimes
();
}));
required_times
=
_
.
uniq
(
Array
.
prototype
.
concat
.
apply
([],
_
.
map
(
scope
.
data
,
function
(
query
)
{
return
query
.
time_series
.
getOrderedTimes
();
}))
.
sort
(),
true
)
;
}
for
(
var
i
=
0
;
i
<
scope
.
data
.
length
;
i
++
)
{
...
...
@@ -532,11 +532,11 @@ angular.module('kibana.histogram', [])
* @return {array} An array of integer times.
*/
this
.
ZeroFilled
.
prototype
.
getOrderedTimes
=
function
(
include
)
{
var
times
=
_
.
map
(
_
.
keys
(
this
.
_data
),
base10Int
)
.
sort
()
;
var
times
=
_
.
map
(
_
.
keys
(
this
.
_data
),
base10Int
);
if
(
_
.
isArray
(
include
))
{
times
=
times
.
concat
(
include
);
}
return
times
;
return
_
.
uniq
(
times
.
sort
(),
true
)
;
};
/**
...
...
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