Testdata: use alias in streaming example (#45631)

This commit is contained in:
Ryan McKinley 2022-02-18 16:30:57 -08:00 committed by GitHub
parent 024194dccd
commit 636af1fff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,10 +51,9 @@ export function runSignalStream(
const schema: DataFrameSchema = {
refId: target.refId,
name: target.alias || 'Signal ' + target.refId,
fields: [
{ name: 'time', type: FieldType.time },
{ name: 'value', type: FieldType.number },
{ name: target.alias ?? 'value', type: FieldType.number },
],
};