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
fe578fa8
Commit
fe578fa8
authored
May 23, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #110 from rashidkpc/master
Fix for unreliable trending numbers before query is complete
parents
65558294
8743a426
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
panels/trends/module.html
+1
-1
panels/trends/module.js
+2
-1
No files found.
panels/trends/module.html
View file @
fe578fa8
<kibana-panel
ng-controller=
'trends'
ng-init=
"init()"
>
<div
ng-style=
"panel.style"
style=
"line-height:{{panel.style['font-size']}};display:inline-block;padding-right: 5px;"
ng-repeat=
"query in
data
"
>
<div
ng-style=
"panel.style"
style=
"line-height:{{panel.style['font-size']}};display:inline-block;padding-right: 5px;"
ng-repeat=
"query in
trends
"
>
<span
ng-class=
"{'text-success': query.hits.new >= query.hits.old, 'text-error': query.hits.old > query.hits.new}"
class=
'strong'
>
<i
class=
'large'
ng-class=
"{'icon-caret-up': query.hits.new >= query.hits.old, 'icon-caret-down': query.hits.old > query.hits.new}"
></i>
{{query.percent}}%
</span>
...
...
panels/trends/module.js
View file @
fe578fa8
...
...
@@ -164,7 +164,8 @@ angular.module('kibana.trends', [])
$scope
.
$emit
(
'render'
);
if
(
_segment
<
$scope
.
index
.
length
-
1
)
$scope
.
get_data
(
_segment
+
1
,
query_id
)
else
$scope
.
trends
=
$scope
.
data
}
});
}
...
...
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