Timeseries: add zoom to data button (#47862)

This commit is contained in:
Ryan McKinley
2022-04-19 17:24:54 -07:00
committed by GitHub
parent 785145c045
commit f4e285b8b4
5 changed files with 67 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ import { AnnotationEditorPlugin } from './plugins/AnnotationEditorPlugin';
import { ThresholdControlsPlugin } from './plugins/ThresholdControlsPlugin';
import { config } from 'app/core/config';
import { PanelDataErrorView } from '@grafana/runtime';
import { OutsideRangePlugin } from './plugins/OutsideRangePlugin';
interface TimeSeriesPanelProps extends PanelProps<TimeSeriesOptions> {}
@@ -134,6 +135,8 @@ export const TimeSeriesPanel: React.FC<TimeSeriesPanelProps> = ({
onThresholdsChange={onThresholdsChange}
/>
)}
<OutsideRangePlugin config={config} range={timeRange} onChangeTimeRange={onChangeTimeRange} />
</>
);
}}