mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: Replaces TimeSeries with GraphSeriesXY (#18475)
* Wip: Compiles and runs * WIP: Logs Graph partially working * Refactor: Adds GraphSeriesToggler * Refactor: Adds tickDecimals to YAxis * Refactor: Adds TimeZone and PlotSelection to Graph * Refactor: Makes the graphResult work in Explore * Refactor: Adds ExploreGraphPanel that is used by Logs and Explore * Fix: Fixes strange behaviour with ExploreMode not beeing changed * Fix: Adds onSelectionChanged to GraphWithLegend * Refactor: Cleans up unused comments * ExploreGraph: Disable colorpicker
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { GraphWithLegendProps } from './GraphWithLegend';
|
||||
import { LegendDisplayMode } from '../Legend/Legend';
|
||||
import { dateTime } from '@grafana/data';
|
||||
// import { LegendList } from '../Legend/LegendList';
|
||||
import { dateTime, DefaultTimeZone } from '@grafana/data';
|
||||
|
||||
export const mockGraphWithLegendData = ({
|
||||
displayMode,
|
||||
@@ -1099,7 +1098,9 @@ export const mockGraphWithLegendData = ({
|
||||
{ title: 'max', text: '18.42', numeric: 18.427101844163694 },
|
||||
],
|
||||
isVisible: true,
|
||||
yAxis: 1,
|
||||
yAxis: {
|
||||
index: 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'B-series',
|
||||
@@ -2191,7 +2192,9 @@ export const mockGraphWithLegendData = ({
|
||||
{ title: 'max', text: '18.42', numeric: 18.427101844163694 },
|
||||
],
|
||||
isVisible: true,
|
||||
yAxis: 1,
|
||||
yAxis: {
|
||||
index: 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
label: 'C-series',
|
||||
@@ -3283,7 +3286,9 @@ export const mockGraphWithLegendData = ({
|
||||
{ title: 'max', text: '18.42', numeric: 18.427101844163694 },
|
||||
],
|
||||
isVisible: true,
|
||||
yAxis: 1,
|
||||
yAxis: {
|
||||
index: 1,
|
||||
},
|
||||
},
|
||||
],
|
||||
timeRange: {
|
||||
@@ -3313,4 +3318,5 @@ export const mockGraphWithLegendData = ({
|
||||
},
|
||||
onToggleSort: () => {},
|
||||
displayMode: displayMode || LegendDisplayMode.List,
|
||||
timeZone: DefaultTimeZone,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user