stream-charts
    Preparing search index...
    • Returns the (time, value) point that comes just before the mouse and just after the mouse

      Type Parameters

      • D

        The type of the datum in the data-series

      Parameters

      • data: Series<D>

        The time-series data

      • value: number

        The time represented by the mouse's x-coordinate

      • xFrom: (value: D) => number

        A function that extracts the x-value from the datum

      • emptyDatum: () => D

        A function that returns an empty datum

      Returns [D, D]

      the (time, value) point that comes just before the mouse and just after the mouse. If the mouse is after the last point, then the "after" point is [NaN, NaN]. If the mouse is before the first point, then the "before" point is [NaN, NaN].