Right tooltip position
This commit is contained in:
1 parent
d36b07bd68
commit
4ba5217a08
1 file changed
+1
-2
@@ -96,8 +96,7 @@ export class PieChart extends PureComponent<Props> {
|
||||
})
|
||||
.on('mousemove', () => {
|
||||
select(this.tooltipElement)
|
||||
// TODO: right position
|
||||
.style('top', `${event.pageY}px`)
|
||||
.style('top', `${event.pageY - height / 2}px`)
|
||||
.style('left', `${event.pageX}px`);
|
||||
})
|
||||
.on('mouseout', () => {
|
||||
|
||||
Reference in new issue
Block a user