mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
set the unit on time data
This commit is contained in:
@@ -51,9 +51,9 @@ export enum NullValueMode {
|
|||||||
export type TimeSeriesVMs = TimeSeriesVM[];
|
export type TimeSeriesVMs = TimeSeriesVM[];
|
||||||
|
|
||||||
export interface Column {
|
export interface Column {
|
||||||
text: string; // name
|
text: string; // The column name
|
||||||
type?: 'time' | 'number' | 'string' | 'object';
|
type?: 'time' | 'number' | 'string' | 'object'; // not used anywhere? can we remove?
|
||||||
filterable?: boolean;
|
filterable?: boolean; // currently only set by elasticsearch, and used in the table panel
|
||||||
unit?: string;
|
unit?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -139,6 +139,7 @@ function convertTimeSeriesToTableData(timeSeries: TimeSeries): TableData {
|
|||||||
{
|
{
|
||||||
text: 'Time',
|
text: 'Time',
|
||||||
type: 'time',
|
type: 'time',
|
||||||
|
unit: 'dateTimeAsIso',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
rows: timeSeries.datapoints,
|
rows: timeSeries.datapoints,
|
||||||
|
|||||||
Reference in New Issue
Block a user