diff --git a/public/app/plugins/panel/timeseries/plugins/ExemplarMarker.tsx b/public/app/plugins/panel/timeseries/plugins/ExemplarMarker.tsx index 53a9cd1b7c2..c502eabf961 100644 --- a/public/app/plugins/panel/timeseries/plugins/ExemplarMarker.tsx +++ b/public/app/plugins/panel/timeseries/plugins/ExemplarMarker.tsx @@ -37,7 +37,22 @@ export const ExemplarMarker: React.FC = ({ const [isOpen, setIsOpen] = useState(false); const [markerElement, setMarkerElement] = React.useState(null); const [popperElement, setPopperElement] = React.useState(null); - const { styles: popperStyles, attributes } = usePopper(markerElement, popperElement); + const { styles: popperStyles, attributes } = usePopper(markerElement, popperElement, { + modifiers: [ + { + name: 'preventOverflow', + options: { + altAxis: true, + }, + }, + { + name: 'flip', + options: { + fallbackPlacements: ['top', 'left-start'], + }, + }, + ], + }); const popoverRenderTimeout = useRef(); const getSymbol = () => {