mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06: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:
parent
a70d48a724
commit
aa73dfa735
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user