SparklineCell: Display absolute value (#76125)
This commit is contained in:
@@ -23,6 +23,7 @@ import {
|
||||
PanelData,
|
||||
LoadingState,
|
||||
GraphSeriesValue,
|
||||
DataFrameWithValue,
|
||||
} from '../types/index';
|
||||
|
||||
import { arrayToDataFrame } from './ArrayDataFrame';
|
||||
@@ -303,6 +304,9 @@ export const isTableData = (data: unknown): data is DataFrame => Boolean(data &&
|
||||
|
||||
export const isDataFrame = (data: unknown): data is DataFrame => Boolean(data && data.hasOwnProperty('fields'));
|
||||
|
||||
export const isDataFrameWithValue = (data: unknown): data is DataFrameWithValue =>
|
||||
Boolean(isDataFrame(data) && data.hasOwnProperty('value'));
|
||||
|
||||
/**
|
||||
* Inspect any object and return the results as a DataFrame
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user