mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Transformations: Clarify behaviour of Date format
(#42436)
* Transformations: Clarify behaviour of `Date format` * Remove full stop from bullet point
This commit is contained in:
parent
7034173ef5
commit
5eb35606b9
@ -347,10 +347,10 @@ This transformation changes the field type of the specified field.
|
|||||||
- **Numeric -** attempts to make the values numbers
|
- **Numeric -** attempts to make the values numbers
|
||||||
- **String -** will make the values strings
|
- **String -** will make the values strings
|
||||||
- **Time -** attempts to parse the values as time
|
- **Time -** attempts to parse the values as time
|
||||||
- Will show an option to specify a DateFormat as input by a string like yyyy-mm-dd or DD MM YYYY hh:mm:ss
|
- Will show an option to specify a DateFormat for the input field like yyyy-mm-dd or DD MM YYYY hh:mm:ss
|
||||||
- **Boolean -** will make the values booleans
|
- **Boolean -** will make the values booleans
|
||||||
|
|
||||||
For example the following query could be modified by selecting the time field, as Time, and Date Format as YYYY.
|
For example the following query could be modified by selecting the time field, as Time, and Input format as YYYY.
|
||||||
|
|
||||||
| Time | Mark | Value |
|
| Time | Mark | Value |
|
||||||
| ---------- | ----- | ----- |
|
| ---------- | ----- | ----- |
|
||||||
|
@ -113,7 +113,10 @@ export const ConvertFieldTypeTransformerEditor: React.FC<TransformerUIProps<Conv
|
|||||||
/>
|
/>
|
||||||
</InlineField>
|
</InlineField>
|
||||||
{c.destinationType === FieldType.time && (
|
{c.destinationType === FieldType.time && (
|
||||||
<InlineField label={'Date Format'}>
|
<InlineField
|
||||||
|
label="Input format"
|
||||||
|
tooltip="Specify the format of the input field so Grafana can parse the date string correctly."
|
||||||
|
>
|
||||||
<Input value={c.dateFormat} placeholder={'e.g. YYYY-MM-DD'} onChange={onInputFormat(idx)} width={24} />
|
<Input value={c.dateFormat} placeholder={'e.g. YYYY-MM-DD'} onChange={onInputFormat(idx)} width={24} />
|
||||||
</InlineField>
|
</InlineField>
|
||||||
)}
|
)}
|
||||||
|
Loading…
Reference in New Issue
Block a user