mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: avoid pointer events in viz tooltip (#45492)
This commit is contained in:
parent
50a53ef58b
commit
685ec5383e
@ -23,7 +23,7 @@ export const VizTooltipContainer: React.FC<VizTooltipContainerProps> = ({
|
||||
position: { x: positionX, y: positionY },
|
||||
offset: { x: offsetX, y: offsetY },
|
||||
children,
|
||||
allowPointerEvents,
|
||||
allowPointerEvents = false,
|
||||
className,
|
||||
...otherProps
|
||||
}) => {
|
||||
|
@ -271,7 +271,7 @@ export const BarChartPanel: React.FunctionComponent<Props> = ({ data, options, w
|
||||
<VizTooltipContainer
|
||||
position={{ x: coords.x, y: coords.y }}
|
||||
offset={{ x: TOOLTIP_OFFSET, y: TOOLTIP_OFFSET }}
|
||||
allowPointerEvents
|
||||
allowPointerEvents={isToolTipOpen.current}
|
||||
>
|
||||
{renderTooltip(info.aligned, focusedSeriesIdx, focusedPointIdx)}
|
||||
</VizTooltipContainer>
|
||||
|
@ -328,11 +328,8 @@ const prepConfig = (
|
||||
|
||||
let deg360 = 2 * Math.PI;
|
||||
|
||||
// leon forgot to add these to the uPlot's Scale interface, but they exist!
|
||||
//let xKey = scaleX.key as string;
|
||||
//let yKey = scaleY.key as string;
|
||||
let xKey = series.facets![0].scale;
|
||||
let yKey = series.facets![1].scale;
|
||||
let xKey = scaleX.key!;
|
||||
let yKey = scaleY.key!;
|
||||
|
||||
let pointHints = scatterInfo.hints.pointSize;
|
||||
const colorByValue = scatterInfo.hints.pointColor.mode.isByValue;
|
||||
|
Loading…
Reference in New Issue
Block a user