mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DataFrame: cache frame/field index in field state (#30529)
This commit is contained in:
@@ -162,6 +162,13 @@ export interface FieldState {
|
||||
* Useful for assigning color to series by looking up a color in a palette using this index
|
||||
*/
|
||||
seriesIndex?: number;
|
||||
|
||||
/**
|
||||
* Location of this field within the context frames results
|
||||
*
|
||||
* @internal -- we will try to make this unnecessary
|
||||
*/
|
||||
origin?: DataFrameFieldIndex;
|
||||
}
|
||||
|
||||
export interface NumericRange {
|
||||
@@ -206,7 +213,8 @@ export const TIME_SERIES_METRIC_FIELD_NAME = 'Metric';
|
||||
/**
|
||||
* Describes where a specific data frame field is located within a
|
||||
* dataset of type DataFrame[]
|
||||
* @public
|
||||
*
|
||||
* @internal -- we will try to make this unnecessary
|
||||
*/
|
||||
export interface DataFrameFieldIndex {
|
||||
frameIndex: number;
|
||||
|
||||
Reference in New Issue
Block a user