import { css } from '@emotion/css';
import React, { useCallback } from 'react';
import { GrafanaTheme2, SelectableValue, TransformerRegistryItem, TransformerUIProps } from '@grafana/data';
import { InlineField, InlineFieldRow, Select, useStyles2 } from '@grafana/ui';
import { prepareTimeSeriesTransformer, PrepareTimeSeriesOptions, timeSeriesFormat } from './prepareTimeSeries';
const wideInfo = {
label: 'Wide time series',
value: timeSeriesFormat.TimeSeriesWide,
description: 'Creates a single frame joined by time',
info: (
Single frame
1st field is shared time field
Time in ascending order
Multiple value fields of any type
),
};
const manyInfo = {
label: 'Multi-frame time series',
value: timeSeriesFormat.TimeSeriesMany,
description: 'Creates a new frame for each time/number pair',
info: (
Multiple frames
Each frame has two fields: time, value
Time in ascending order
String values are represented as labels
All values are numeric
),
};
const longInfo = {
label: 'Long time series',
value: timeSeriesFormat.TimeSeriesLong,
description: 'Convert each frame to long format',
info: (
Single frame
1st field is time field
Time in ascending order, but may have duplictes
String values are represented as separate fields rather than as labels