mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
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
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user