Skip to main content

    convertToTimeseries

    The convertToTimeseries function takes a set of Grail records and converts it to Timeseries which can be used for charting.

    Import

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

    Use cases

    Pass an array in the format of RangedFieldTypes and dataset in the format of ResultRecord and receive an array of Timeseries data.

    CodeSandbox

    Exclude fields from being converted

    The parameter hiddenFieldIds provides a way to specify a list of field ids that should not be converted.

    CodeSandbox
    Still have questions?
    Find answers in the Dynatrace Community