foldkit-viz - v0.15.0
    Preparing search index...

    Function ordinal

    • Maps a discrete domain to a discrete range, cycling through range values if the domain is larger than the range — D3 scaleOrdinal parity.

      Type Parameters

      • R

      Parameters

      • domain: readonly string[]
      • range: readonly R[]

      Returns (value: string) => R