Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
D
DV-Project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
DV-Project
Commits
e5e133c4
Commit
e5e133c4
authored
Feb 14, 2025
by
Almouhannad Hafez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tooltip position
parent
7879266f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pie-chart.ts
src/ts/charts/pie-chart.ts
+2
-2
No files found.
src/ts/charts/pie-chart.ts
View file @
e5e133c4
...
...
@@ -128,11 +128,11 @@ export class PieChart extends Chart {
vis
.
tooltip
.
style
(
'opacity'
,
.
9
).
style
(
'display'
,
'block'
);
vis
.
tooltip
.
html
(
`
${
d
.
data
.
key
}
<br>Total Medals:
${
d
.
data
.
value
}
`
)
.
style
(
'left'
,
(
event
.
pageX
-
20
)
+
'px'
)
.
style
(
'top'
,
(
event
.
pageY
-
8
5
)
+
'px'
);
.
style
(
'top'
,
(
event
.
pageY
-
6
5
)
+
'px'
);
})
.
on
(
"mousemove"
,
function
(
event
:
any
)
{
vis
.
tooltip
.
style
(
'left'
,
(
event
.
pageX
-
20
)
+
'px'
)
.
style
(
'top'
,
(
event
.
pageY
-
8
5
)
+
'px'
);
.
style
(
'top'
,
(
event
.
pageY
-
6
5
)
+
'px'
);
})
.
on
(
"mouseout"
,
function
()
{
// Reset opacity of all arcs
...
...
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