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
d1e8418c
Commit
d1e8418c
authored
Oct 15, 2016
by
Ben RUBSON
Committed by
Torkel Ödegaard
Oct 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct tooltip timestamp (#6283)
Corrects #6275, follows #6211
parent
c1567ae5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
public/app/plugins/panel/graph/graph_tooltip.js
+9
-4
No files found.
public/app/plugins/panel/graph/graph_tooltip.js
View file @
d1e8418c
...
...
@@ -149,8 +149,6 @@ function ($, _) {
seriesHtml
=
''
;
absoluteTime
=
dashboard
.
formatDate
(
seriesHoverInfo
.
time
,
tooltipFormat
);
// Dynamically reorder the hovercard for the current time point if the
// option is enabled, sort by yaxis by default.
if
(
panel
.
tooltip
.
sort
===
2
)
{
...
...
@@ -161,13 +159,14 @@ function ($, _) {
seriesHoverInfo
.
sort
(
function
(
a
,
b
)
{
return
a
.
value
-
b
.
value
;
});
}
else
{
}
else
{
seriesHoverInfo
.
sort
(
function
(
a
,
b
)
{
return
a
.
yaxis
-
b
.
yaxis
;
});
}
var
distance
,
time
;
for
(
i
=
0
;
i
<
seriesHoverInfo
.
length
;
i
++
)
{
hoverInfo
=
seriesHoverInfo
[
i
];
...
...
@@ -175,6 +174,11 @@ function ($, _) {
continue
;
}
if
(
!
distance
||
hoverInfo
.
distance
<
distance
)
{
distance
=
hoverInfo
.
distance
;
time
=
hoverInfo
.
time
;
}
var
highlightClass
=
''
;
if
(
item
&&
i
===
item
.
seriesIndex
)
{
highlightClass
=
'graph-tooltip-list-item--highlight'
;
...
...
@@ -190,6 +194,7 @@ function ($, _) {
plot
.
highlight
(
hoverInfo
.
index
,
hoverInfo
.
hoverIndex
);
}
absoluteTime
=
dashboard
.
formatDate
(
time
,
tooltipFormat
);
self
.
showTooltip
(
absoluteTime
,
seriesHtml
,
pos
);
}
// single series tooltip
...
...
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