SparklineCell: Display absolute value (#76125)

This commit is contained in:
Domas
2023-10-13 11:00:42 +03:00
committed by GitHub
parent d72ec22ec2
commit 239bda207e
24 changed files with 253 additions and 111 deletions
@@ -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
*/