Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
e7aa8493
Commit
e7aa8493
authored
Sep 12, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tooltip over days chart
parent
da6aa4f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
1 deletion
+43
-1
debomatic-webui/public/javascripts/page_history.js
debomatic-webui/public/javascripts/page_history.js
+42
-1
debomatic-webui/public/stylesheets/style.css
debomatic-webui/public/stylesheets/style.css
+1
-0
No files found.
debomatic-webui/public/javascripts/page_history.js
View file @
e7aa8493
...
@@ -141,9 +141,50 @@ function Page_History() {
...
@@ -141,9 +141,50 @@ function Page_History() {
else
else
info
.
push
(
0
);
info
.
push
(
0
);
}
}
days_data
.
series
.
push
(
info
);
days_data
.
series
.
push
({
name
:
distro
,
data
:
info
});
}
}
Chartist
.
Line
(
'
#days-chart
'
,
days_data
);
Chartist
.
Line
(
'
#days-chart
'
,
days_data
);
var
effect
=
function
(
x
,
t
,
b
,
c
,
d
)
{
return
-
c
*
(
t
/=
d
)
*
(
t
-
2
)
+
b
;
};
var
$chart
=
$
(
'
#days-chart
'
);
var
$toolTip
=
$chart
.
append
(
'
<div class="tooltip fade top in" role="tooltip">
'
+
'
<div class="tooltip-arrow"></div>
'
+
'
<div class="tooltip-inner"></div>
'
+
'
</div>
'
).
find
(
'
.tooltip
'
).
hide
();
$chart
.
on
(
'
mouseenter
'
,
'
.ct-point
'
,
function
()
{
var
$point
=
$
(
this
),
value
=
$point
.
attr
(
'
ct:value
'
),
seriesName
=
$point
.
parent
().
attr
(
'
ct:series-name
'
);
$point
.
animate
({
'
stroke-width
'
:
'
20px
'
},
300
,
effect
);
$toolTip
.
find
(
'
.tooltip-inner
'
).
html
(
seriesName
+
'
(
'
+
value
+
'
)
'
);
$toolTip
.
show
();
});
$chart
.
on
(
'
mouseleave
'
,
'
.ct-point
'
,
function
()
{
var
$point
=
$
(
this
);
$point
.
animate
({
'
stroke-width
'
:
'
10px
'
},
300
,
effect
);
$toolTip
.
hide
();
});
$chart
.
on
(
'
mousemove
'
,
function
(
event
)
{
$toolTip
.
css
({
left
:
event
.
offsetX
-
$toolTip
.
width
()
/
2
,
top
:
event
.
offsetY
-
$toolTip
.
height
()
-
20
});
});
}
}
function
_exportTableToCSV
(
$table
,
filename
)
{
function
_exportTableToCSV
(
$table
,
filename
)
{
...
...
debomatic-webui/public/stylesheets/style.css
View file @
e7aa8493
...
@@ -265,6 +265,7 @@ footer .info {
...
@@ -265,6 +265,7 @@ footer .info {
width
:
50%
;
width
:
50%
;
float
:
left
;
float
:
left
;
margin-bottom
:
30px
;
margin-bottom
:
30px
;
position
:
relative
;
}
}
.ct-chart
.ct-label
{
.ct-chart
.ct-label
{
...
...
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