From aa73dfa735cb85e8a873555624d476423aae717e Mon Sep 17 00:00:00 2001 From: Andre Pereira Date: Thu, 11 Jan 2024 16:10:16 +0000 Subject: [PATCH] Data Trails: Sync cursor of all breakdown graphs with main metric graph (#80226) * Sync cursor of all breakdown graphs with main metric graph * Remove syncs from breakdown scene since they're not needed --- public/app/features/trails/MetricScene.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/app/features/trails/MetricScene.tsx b/public/app/features/trails/MetricScene.tsx index 992fd003778..5fa886265c2 100644 --- a/public/app/features/trails/MetricScene.tsx +++ b/public/app/features/trails/MetricScene.tsx @@ -1,5 +1,6 @@ import React, { useState } from 'react'; +import { DashboardCursorSync } from '@grafana/data'; import { SceneObjectState, SceneObjectBase, @@ -11,6 +12,7 @@ import { SceneObjectUrlValues, PanelBuilders, sceneGraph, + behaviors, } from '@grafana/scenes'; import { ToolbarButton, Box, Stack, Icon } from '@grafana/ui'; @@ -159,6 +161,7 @@ function buildGraphScene(metric: string) { return new SceneFlexLayout({ direction: 'column', + $behaviors: [new behaviors.CursorSync({ key: 'metricCrosshairSync', sync: DashboardCursorSync.Crosshair })], children: [ new SceneFlexItem({ minHeight: MAIN_PANEL_MIN_HEIGHT,