Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bastien Durel
coviz
Commits
45addd0b
Commit
45addd0b
authored
Nov 06, 2020
by
Bastien Durel
Browse files
better tooltip
parent
234cdcae
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.html
View file @
45addd0b
...
...
@@ -196,12 +196,12 @@
}
div
.
style
(
"
opacity
"
,
.
9
);
div
.
style
(
"
left
"
,
(
d3
.
event
.
pageX
+
3
0
)
+
"
px
"
)
.
style
(
"
top
"
,
(
d3
.
event
.
pageY
-
6
0
)
+
"
px
"
)
.
html
(
"
<b>Date
:
</b>
"
+
dateFormat
(
entry
.
date
)
+
"
<br>
"
+
"
<b>Morts
:
</b>
"
+
entry
.
dc
+
"
<br>
"
+
"
<b>Réanimations
:
</b>
"
+
entry
.
rea
+
"
<br>
"
+
"
<b>Hospitalisations
:
</b>
"
+
entry
.
hosp
+
"
<br>
"
);
div
.
style
(
"
left
"
,
(
d3
.
event
.
pageX
-
8
0
)
+
"
px
"
)
.
style
(
"
top
"
,
(
d3
.
event
.
pageY
-
8
0
)
+
"
px
"
)
.
html
(
"
<b>Date
:
</b>
"
+
dateFormat
(
entry
.
date
)
+
"
<br>
"
+
"
<b>Morts
:
</b>
"
+
entry
.
dc
+
"
<br>
"
+
"
<b>Réanimations
:
</b>
"
+
entry
.
rea
+
"
<br>
"
+
"
<b>Hospitalisations
:
</b>
"
+
entry
.
hosp
+
"
<br>
"
);
}).
on
(
"
mouseout
"
,
function
()
{
var
mouse_x
=
d3
.
mouse
(
this
)[
0
];
var
mouse_y
=
d3
.
mouse
(
this
)[
1
];
...
...
@@ -215,7 +215,7 @@
<div
class=
"bar"
>
<button
onclick=
"reload('data.php?col=rea', 'Patients en réanimation')"
>
Réanimation
</button>
<button
onclick=
"reload('data.php?col=hosp', 'Patients hospitalisés')"
>
Hospitalisations
</button>
<button
onclick=
"reload('data.php?col=dc', 'Décès')"
>
Décès
</button>
<button
onclick=
"reload('data.php?col=dc', 'Décès')"
>
Décès
en millieu hospitalier
</button>
</div>
</body>
</html>
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