Explore: Fixes query hint issues (#18803)

* Explore: clear results when you change datasource

* Explore: Clear results on data source change, and fix query hints issue

* Clear results on clear all

* Prometheus: Update logic of when to re-check query hints
This commit is contained in:
Torkel Ödegaard
2019-08-30 15:22:36 +02:00
committed by GitHub
parent 89abc77b22
commit 8e9cb5c81a
4 changed files with 17 additions and 6 deletions

View File

@@ -96,10 +96,11 @@ function convertTimeSeriesToDataFrame(timeSeries: TimeSeries): DataFrame {
function convertGraphSeriesToDataFrame(graphSeries: GraphSeriesXY): DataFrame {
const x = new ArrayVector();
const y = new ArrayVector();
for (let i = 0; i < graphSeries.data.length; i++) {
const row = graphSeries.data[i];
x.buffer.push(row[0]);
y.buffer.push(row[1]);
x.buffer.push(row[1]);
y.buffer.push(row[0]);
}
return {