stream-charts
    Preparing search index...
    • Creates a subscription to the series observable with the data stream. The common code is shared by the plots.

      Parameters

      • seriesObservable: Observable<OrdinalChartData>

        The series observable holding the stream of chart data

      • onSubscribe: (subscription: Subscription) => void

        Callback for when the observable is subscribed to

      • windowingTime: number

        Basically the update time when data is collected and then rendered

      • axisAssignments: Map<string, AxesAssignment>

        The assignment of the series to their x- and y-axes

      • yAxesState: AxesState<OrdinalStringAxis>

        The current state of the x-axis

      • onUpdateData: ((seriesName: string, data: OrdinalDatum[]) => void) | undefined

        Callback for when data is updated

      • dropDataAfter: number

        Limits the amount of data stored. Any data older than this value (ms) will be dropped on the next update

      • updateTimingAndPlot: (ranges: Map<string, OrdinalAxisRange>) => void

        The callback function to update the plot and timing

      • seriesMap: Map<string, BaseSeries<OrdinalDatum>>

        The series-name and the associated series

      • ordinalStatsRef: RefObject<WindowedOrdinalStats>

        The statistics about the data in the chart and about each series

      • setCurrentTime: (currentTime: number) => void

        Callback to update the current time based on the streamed data

      • originalRange: AxisInterval

        The original range of the axes

      Returns Subscription

      A subscription to the observable (for cancelling and the likes)