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:
Hugo Häggmark
2019-08-13 07:32:43 +02:00
committed by GitHub
parent 8fd153edb7
commit 4b3440325e
30 changed files with 550 additions and 997 deletions

View File

@@ -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,
});