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
731bb6ba
Commit
731bb6ba
authored
Dec 18, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Graph: hover tooltip and axis format units fix, bug introduced last week
parent
fed06ef9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
src/app/panels/graph/graph.tooltip.js
+13
-4
No files found.
src/app/panels/graph/graph.tooltip.js
View file @
731bb6ba
...
...
@@ -70,7 +70,11 @@ function ($) {
for
(
i
=
0
;
i
<
seriesList
.
length
;
i
++
)
{
series
=
seriesList
[
i
];
if
(
!
series
.
data
.
length
)
{
continue
;
}
if
(
!
series
.
data
.
length
)
{
results
.
push
({
hidden
:
true
});
continue
;
}
if
(
scope
.
panel
.
stack
)
{
if
(
scope
.
panel
.
tooltip
.
value_type
===
'individual'
)
{
...
...
@@ -99,9 +103,9 @@ function ($) {
lasthoverIndex
=
hoverIndex
;
}
results
.
push
({
value
:
value
,
hoverIndex
:
newhoverIndex
,
series
:
series
});
results
.
push
({
value
:
value
,
hoverIndex
:
newhoverIndex
});
}
else
{
results
.
push
({
value
:
value
,
hoverIndex
:
hoverIndex
,
series
:
series
});
results
.
push
({
value
:
value
,
hoverIndex
:
hoverIndex
});
}
}
...
...
@@ -150,7 +154,12 @@ function ($) {
for
(
i
=
0
;
i
<
seriesHoverInfo
.
length
;
i
++
)
{
hoverInfo
=
seriesHoverInfo
[
i
];
series
=
hoverInfo
.
series
;
if
(
hoverInfo
.
hidden
)
{
continue
;
}
series
=
seriesList
[
i
];
value
=
series
.
formatValue
(
hoverInfo
.
value
);
seriesHtml
+=
'<div class="graph-tooltip-list-item"><div class="graph-tooltip-series-name">'
;
...
...
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