From 7cad9f25934e7ea2864ac6a3e1a5694a955ffb4e Mon Sep 17 00:00:00 2001 From: Nadezhda Mishchenko Date: Wed, 5 Jul 2023 09:38:53 +0200 Subject: [PATCH] fix popup --- .../src/PluginCountryMapPieChart.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/plugins/plugin-country-map-pie-chart/src/PluginCountryMapPieChart.tsx b/superset-frontend/plugins/plugin-country-map-pie-chart/src/PluginCountryMapPieChart.tsx index 9e0a2d2b3df9f..543958bf6d4ea 100644 --- a/superset-frontend/plugins/plugin-country-map-pie-chart/src/PluginCountryMapPieChart.tsx +++ b/superset-frontend/plugins/plugin-country-map-pie-chart/src/PluginCountryMapPieChart.tsx @@ -340,8 +340,8 @@ export default function PluginCountryMapPieChart( div .html(`${ d.data.pie_detail }: ${ d.data['SUM(count_vin)'] }`) .style('opacity', 1) - .style('left', `${ d3.event.pageX - x}px`) - .style('top', `${ d3.event.pageY - y - 130}px`); + .style('left', `${ d3.event.pageX - x + 5}px`) + .style('top', `${ d3.event.pageY - y - 5}px`); }) .on('mouseout', function () { div.html('').style('opacity', 0);