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
90d765d9
Commit
90d765d9
authored
Nov 01, 2013
by
Rashid Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes #600
parent
14cd8975
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/app/panels/histogram/module.js
+8
-7
No files found.
src/app/panels/histogram/module.js
View file @
90d765d9
...
...
@@ -593,7 +593,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
var
$tooltip
=
$
(
'<div>'
);
elem
.
bind
(
"plothover"
,
function
(
event
,
pos
,
item
)
{
var
group
,
value
;
var
group
,
value
,
timestamp
;
if
(
item
)
{
if
(
item
.
series
.
info
.
alias
||
scope
.
panel
.
tooltip
.
query_as_alias
)
{
group
=
'<small style="font-size:0.9em;">'
+
...
...
@@ -603,14 +603,15 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
}
else
{
group
=
kbn
.
query_color_dot
(
item
.
series
.
color
,
15
)
+
' '
;
}
if
(
scope
.
panel
.
stack
&&
scope
.
panel
.
tooltip
.
value_type
===
'individual'
)
{
value
=
item
.
datapoint
[
1
]
-
item
.
datapoint
[
2
];
}
else
{
value
=
item
.
datapoint
[
1
];
}
value
=
(
scope
.
panel
.
stack
&&
scope
.
panel
.
tooltip
.
value_type
===
'individual'
)
?
item
.
datapoint
[
1
]
-
item
.
datapoint
[
2
]
:
item
.
datapoint
[
1
];
timestamp
=
scope
.
panel
.
timezone
===
'browser'
?
moment
(
item
.
datapoint
[
0
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
moment
.
utc
(
item
.
datapoint
[
0
]).
format
(
'YYYY-MM-DD HH:mm:ss'
);
$tooltip
.
html
(
group
+
value
+
" @ "
+
moment
(
item
.
datapoint
[
0
]).
format
(
'YYYY-MM-DD HH:mm:ss'
)
group
+
value
+
" @ "
+
timestamp
)
.
place_tt
(
pos
.
pageX
,
pos
.
pageY
);
}
else
{
...
...
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