mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Table: Highlight row on shared crosshair (#78392)
* bidirectional shared crosshair table WIP * add shared crosshair to table panel * lower around point threshold * add feature toggle * add index based verification * add adaptive threshold * switch to debounceTime * lower debounce to 100 * raise debounce back to 200 * revert azure dashboard * re-render only rows list on data hover event * further break down table component * refactor * raise debounce time * fix build
This commit is contained in:
@@ -7,5 +7,11 @@ export * from './dimensions';
|
||||
export * from './ArrayDataFrame';
|
||||
export * from './DataFrameJSON';
|
||||
export * from './frameComparisons';
|
||||
export { anySeriesWithTimeField, isTimeSeriesFrame, isTimeSeriesFrames, isTimeSeriesField } from './utils';
|
||||
export {
|
||||
anySeriesWithTimeField,
|
||||
hasTimeField,
|
||||
isTimeSeriesFrame,
|
||||
isTimeSeriesFrames,
|
||||
isTimeSeriesField,
|
||||
} from './utils';
|
||||
export { StreamingDataFrame, StreamingFrameAction, type StreamingFrameOptions, closestIdx } from './StreamingDataFrame';
|
||||
|
||||
@@ -78,3 +78,11 @@ export function anySeriesWithTimeField(data: DataFrame[]) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Indicates if there is any time field in the data frame
|
||||
* @param data
|
||||
*/
|
||||
export function hasTimeField(data: DataFrame): boolean {
|
||||
return data.fields.some((field) => field.type === FieldType.time);
|
||||
}
|
||||
|
||||
@@ -166,6 +166,7 @@ export interface FeatureToggles {
|
||||
alertingSimplifiedRouting?: boolean;
|
||||
logRowsPopoverMenu?: boolean;
|
||||
pluginsSkipHostEnvVars?: boolean;
|
||||
tableSharedCrosshair?: boolean;
|
||||
regressionTransformation?: boolean;
|
||||
displayAnonymousStats?: boolean;
|
||||
alertStateHistoryAnnotationsFromLoki?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user