Function xyEnsureGrowingX

  • Filters x,y values to allow strictly growing values in x-axis.

    Parameters

    • data: DataXY<NumberArray>

      Object that contains property x (an ordered increasing array) and y (an array).

    Returns DataXY