Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Louis
pypimonitor
Commits
a51bdb8e
Commit
a51bdb8e
authored
May 27, 2016
by
Louis
Browse files
Add package name in chart tooltips
parent
6c6fb3a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
TODO.md
View file @
a51bdb8e
-
HTML
-
[ ] Add package name in chart tooltips
-
[x] Add favicon
-
[ ] Validate the HTML output
...
...
pypimonitor/data/templates/linecharts.html
View file @
a51bdb8e
...
...
@@ -44,10 +44,11 @@
callbacks
:
{
label
:
function
(
tooltipItem
,
data
)
{
var
version
=
data
.
datasets
[
tooltipItem
.
datasetIndex
].
data
[
tooltipItem
.
index
][
'
version
'
];
var
name
=
data
.
datasets
[
tooltipItem
.
datasetIndex
].
label
;
if
(
typeof
version
==
"
undefined
"
)
{
return
tooltipItem
.
xLabel
+
"
:
"
+
tooltipItem
.
yLabel
;
return
name
+
"
"
+
tooltipItem
.
xLabel
+
"
:
"
+
tooltipItem
.
yLabel
;
}
else
{
return
tooltipItem
.
xLabel
+
"
(version
"
+
version
+
"
):
"
+
tooltipItem
.
yLabel
;
return
name
+
"
"
+
tooltipItem
.
xLabel
+
"
(version
"
+
version
+
"
):
"
+
tooltipItem
.
yLabel
;
}
},
}
...
...
Write
Preview
Supports
Markdown
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