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 },
|
position: { x: positionX, y: positionY },
|
||||||
offset: { x: offsetX, y: offsetY },
|
offset: { x: offsetX, y: offsetY },
|
||||||
children,
|
children,
|
||||||
allowPointerEvents,
|
allowPointerEvents = false,
|
||||||
className,
|
className,
|
||||||
...otherProps
|
...otherProps
|
||||||
}) => {
|
}) => {
|
||||||
|
@ -271,7 +271,7 @@ export const BarChartPanel: React.FunctionComponent<Props> = ({ data, options, w
|
|||||||
<VizTooltipContainer
|
<VizTooltipContainer
|
||||||
position={{ x: coords.x, y: coords.y }}
|
position={{ x: coords.x, y: coords.y }}
|
||||||
offset={{ x: TOOLTIP_OFFSET, y: TOOLTIP_OFFSET }}
|
offset={{ x: TOOLTIP_OFFSET, y: TOOLTIP_OFFSET }}
|
||||||
allowPointerEvents
|
allowPointerEvents={isToolTipOpen.current}
|
||||||
>
|
>
|
||||||
{renderTooltip(info.aligned, focusedSeriesIdx, focusedPointIdx)}
|
{renderTooltip(info.aligned, focusedSeriesIdx, focusedPointIdx)}
|
||||||
</VizTooltipContainer>
|
</VizTooltipContainer>
|
||||||
|
@ -328,11 +328,8 @@ const prepConfig = (
|
|||||||
|
|
||||||
let deg360 = 2 * Math.PI;
|
let deg360 = 2 * Math.PI;
|
||||||
|
|
||||||
// leon forgot to add these to the uPlot's Scale interface, but they exist!
|
let xKey = scaleX.key!;
|
||||||
//let xKey = scaleX.key as string;
|
let yKey = scaleY.key!;
|
||||||
//let yKey = scaleY.key as string;
|
|
||||||
let xKey = series.facets![0].scale;
|
|
||||||
let yKey = series.facets![1].scale;
|
|
||||||
|
|
||||||
let pointHints = scatterInfo.hints.pointSize;
|
let pointHints = scatterInfo.hints.pointSize;
|
||||||
const colorByValue = scatterInfo.hints.pointColor.mode.isByValue;
|
const colorByValue = scatterInfo.hints.pointColor.mode.isByValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user