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
9034405d
Commit
9034405d
authored
Sep 23, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tooltip to disk usage graph
parent
1d00fca1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
debomatic-webui/public/javascripts/page_history.js
debomatic-webui/public/javascripts/page_history.js
+4
-1
No files found.
debomatic-webui/public/javascripts/page_history.js
View file @
9034405d
...
...
@@ -106,7 +106,7 @@ function Page_History() {
}
// add tooltip to graphs
function
_create_graph_tooltip
(
graph
,
element
)
{
function
_create_graph_tooltip
(
graph
,
element
,
suffix_value
)
{
var
$chart
=
$
(
graph
);
var
$toolTip
=
$chart
.
append
(
'
<div class="tooltip fade top in" role="tooltip">
'
+
...
...
@@ -124,6 +124,8 @@ function Page_History() {
var
$point
=
$
(
this
),
value
=
$point
.
attr
(
'
ct:value
'
),
seriesName
=
$point
.
parent
().
attr
(
'
ct:series-name
'
);
if
(
suffix_value
)
value
=
value
+
"
"
+
suffix_value
;
$toolTip
.
find
(
'
.tooltip-inner
'
).
html
(
seriesName
+
'
(
'
+
value
+
'
)
'
);
$toolTip
.
show
();
});
...
...
@@ -240,6 +242,7 @@ function Page_History() {
labels
:
distributions
,
series
:
series
},
options
);
_create_graph_tooltip
(
"
#disk-chart
"
,
'
.ct-bar
'
,
"
MB
"
);
}
...
...
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