stream-charts
    Preparing search index...

    Type Alias UseInitialDataValues<CD, D>

    The values exposed through the useInitialData react hook

    type UseInitialDataValues<CD extends ChartData, D> = {
        asChartData?: (seriesList: BaseSeries<D>[]) => CD;
        initialData: BaseSeries<D>[];
    }

    Type Parameters

    Index

    Properties

    asChartData?: (seriesList: BaseSeries<D>[]) => CD

    Function that takes an array of series (which has elements of type D) and converts it into a chart data type, CD

    initialData: BaseSeries<D>[]

    An array of series representing the initial data for the chart (i.e. static data before streaming starts) where D is a datum, whose type must be the same as that used for the Observable on the chart data