ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Function getFullRange

    • Gets the range of values for a column from all rows. Returns all values, including the filtered out ones.

      Type Parameters

      • TData

      Parameters

      • column: Column<TData, unknown>

        The column to get the range from

      • table: Table<TData>

        The table instance

      Returns [number, number]

      A tuple containing the minimum and maximum values

      export function getFullRange<TData>(
      column: Column<TData, unknown>,
      table: Table<TData>,
      ): [number, number] {
      const values = getAllUniqueValues(column, table);
      return [values[0] as number, values.at(-1) as number];
      }