Skip to main content

convertToSingleValueData

The convertToSingleValueData function takes a set of Grail records and converts it to a SingleValueData object that can be used for charting.

Import

import { convertToSingleValueData } from '@dynatrace/strato-components-preview/conversion-utilities';

Use cases

Pass in the field types array, index for the type mapping, record and optional field. Afterwards, receive a SingleValueData object.

CodeSandbox
Still have questions?
Find answers in the Dynatrace Community