Commit 4ba5217a by corpglory-dev

Right tooltip position

parent d36b07bd
......@@ -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', () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment