From 4682cf5b7c2fb3c37653b8c1e4b050df44adcf60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Bedi?= Date: Wed, 29 Sep 2021 10:27:04 +0200 Subject: [PATCH] TimeSeries: Fix shared cursor (#39738) --- packages/grafana-ui/src/components/GraphNG/GraphNG.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx b/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx index 1fb68e60dd0..93ca2a954c0 100755 --- a/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx +++ b/packages/grafana-ui/src/components/GraphNG/GraphNG.tsx @@ -72,7 +72,7 @@ export interface GraphNGState { } /** - * "Time as X" core component, expectes ascending x + * "Time as X" core component, expects ascending x */ export class GraphNG extends React.Component { static contextType = PanelContextRoot; @@ -138,7 +138,7 @@ export class GraphNG extends React.Component { const u = this.plotInstance.current; if (u) { // Try finding left position on time axis - const left = u.valToPos(evt.payload.point.time, 'time'); + const left = u.valToPos(evt.payload.point.time, 'x'); let top; if (left) { // find midpoint between points at current idx