mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user