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
2d1f2f36
Unverified
Commit
2d1f2f36
authored
Apr 04, 2018
by
Daniel Lee
Committed by
GitHub
Apr 04, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11480 from grafana/graph_tooltip_to_ts
Graph tooltip to ts
parents
28849bbd
7b9b34c6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
public/app/plugins/panel/graph/graph_tooltip.ts
+0
-0
public/app/plugins/panel/graph/specs/tooltip_specs.ts
+3
-2
No files found.
public/app/plugins/panel/graph/graph_tooltip.
j
s
→
public/app/plugins/panel/graph/graph_tooltip.
t
s
View file @
2d1f2f36
This diff is collapsed.
Click to expand it.
public/app/plugins/panel/graph/specs/tooltip_specs.ts
View file @
2d1f2f36
...
@@ -11,6 +11,7 @@ var scope = {
...
@@ -11,6 +11,7 @@ var scope = {
var
elem
=
$
(
'<div></div>'
);
var
elem
=
$
(
'<div></div>'
);
var
dashboard
=
{};
var
dashboard
=
{};
var
getSeriesFn
;
function
describeSharedTooltip
(
desc
,
fn
)
{
function
describeSharedTooltip
(
desc
,
fn
)
{
var
ctx
:
any
=
{};
var
ctx
:
any
=
{};
...
@@ -30,7 +31,7 @@ function describeSharedTooltip(desc, fn) {
...
@@ -30,7 +31,7 @@ function describeSharedTooltip(desc, fn) {
describe
(
desc
,
function
()
{
describe
(
desc
,
function
()
{
beforeEach
(
function
()
{
beforeEach
(
function
()
{
ctx
.
setupFn
();
ctx
.
setupFn
();
var
tooltip
=
new
GraphTooltip
(
elem
,
dashboard
,
scope
);
var
tooltip
=
new
GraphTooltip
(
elem
,
dashboard
,
scope
,
getSeriesFn
);
ctx
.
results
=
tooltip
.
getMultiSeriesPlotHoverInfo
(
ctx
.
data
,
ctx
.
pos
);
ctx
.
results
=
tooltip
.
getMultiSeriesPlotHoverInfo
(
ctx
.
data
,
ctx
.
pos
);
});
});
...
@@ -39,7 +40,7 @@ function describeSharedTooltip(desc, fn) {
...
@@ -39,7 +40,7 @@ function describeSharedTooltip(desc, fn) {
}
}
describe
(
'findHoverIndexFromData'
,
function
()
{
describe
(
'findHoverIndexFromData'
,
function
()
{
var
tooltip
=
new
GraphTooltip
(
elem
,
dashboard
,
scope
);
var
tooltip
=
new
GraphTooltip
(
elem
,
dashboard
,
scope
,
getSeriesFn
);
var
series
=
{
var
series
=
{
data
:
[[
100
,
0
],
[
101
,
0
],
[
102
,
0
],
[
103
,
0
],
[
104
,
0
],
[
105
,
0
],
[
106
,
0
],
[
107
,
0
]],
data
:
[[
100
,
0
],
[
101
,
0
],
[
102
,
0
],
[
103
,
0
],
[
104
,
0
],
[
105
,
0
],
[
106
,
0
],
[
107
,
0
]],
};
};
...
...
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