Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadezhda Mishchenko committed Aug 7, 2023
1 parent 2bb013e commit 35d2626
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function PluginCountryMapPieChart(
radius = 75;
} else {
scale = 1150;
center = [5, 60];
center = [10, 60];
radius = 25;
}

Expand Down Expand Up @@ -312,8 +312,8 @@ export default function PluginCountryMapPieChart(
div
.html(`${ d.data.pie_detail }: ${ d.data[metric.label] }`)
.style('opacity', 1)
.style('left', `${ d3.event.pageX - x + 5}px`)
.style('top', `${ d3.event.pageY - y - 5}px`);
.style('left', `${ d3.event.pageX - x + 20}px`)
.style('top', `${ d3.event.pageY - y - 20}px`);
})
.on('mouseout', function () {
div.html('').style('opacity', 0);
Expand Down

0 comments on commit 35d2626

Please sign in to comment.