Options
All
  • Public
  • Public/Protected
  • All
Menu

UpSet.js Addons - v1.11.0

Index

Type aliases

CategoricalProps

CategoricalProps: ({ base?: readonly string[]; categories: readonly (string | ICategory)[]; values: readonly string[] } | { bins: readonly ICategoryBin[] }) & { height: number; margin?: number; rectStyle?: React.CSSProperties; tooltips?: boolean; width: number } & ICategoricalStyleProps

ICategoryBins

ICategoryBins: readonly ICategoryBin[]

Functions

Const Boxplot

Const Categorical

boxplotAddon

  • boxplotAddon<T>(prop: keyof T | ((v: T) => number), elems: readonly T[] | { max: number; min: number }, options?: Partial<Pick<UpSetAddon<ISetLike<T>, T, ReactNode>, "size" | "position" | "name">> & IBoxplotStyleProps): UpSetAddon<ISetLike<T>, T, React.ReactNode>
  • generates a boxplot addon to render box plots as UpSet.js addon for aggregated set data

    Type parameters

    • T

    Parameters

    • prop: keyof T | ((v: T) => number)

      accessor or name of the property within the element

    • elems: readonly T[] | { max: number; min: number }

      list of elements or their minimum / maximum value for specifying the data domain

    • options: Partial<Pick<UpSetAddon<ISetLike<T>, T, ReactNode>, "size" | "position" | "name">> & IBoxplotStyleProps = {}

      additional options

    Returns UpSetAddon<ISetLike<T>, T, React.ReactNode>

boxplotAggregatedAddon

  • boxplotAggregatedAddon<T>(acc: (v: readonly T[]) => IBoxPlot, domain: { max: number; min: number }, options?: Partial<Pick<UpSetAddon<ISetLike<T>, T, ReactNode>, "size" | "position" | "name">> & IBoxplotStyleProps): UpSetAddon<ISetLike<T>, T, React.ReactNode>
  • generates a boxplot addon to render box plots as UpSet.js addon for aggregated set data

    Type parameters

    • T

    Parameters

    • acc: (v: readonly T[]) => IBoxPlot

      accessor

        • (v: readonly T[]): IBoxPlot
        • Parameters

          • v: readonly T[]

          Returns IBoxPlot

    • domain: { max: number; min: number }
      • max: number
      • min: number
    • options: Partial<Pick<UpSetAddon<ISetLike<T>, T, ReactNode>, "size" | "position" | "name">> & IBoxplotStyleProps = {}

      additional options

    Returns UpSetAddon<ISetLike<T>, T, React.ReactNode>

categoricalAddon

  • categoricalAddon<T>(prop: keyof T | ((v: T) => string), elems: readonly T[] | { categories: readonly (string | ICategory)[] }, options?: Partial<Pick<UpSetAddon<ISetLike<T>, T, ReactNode>, "size" | "position" | "name">> & ICategoricalStyleProps): UpSetAddon<ISetLike<T>, T, React.ReactNode>
  • generates a categorical addon to render distributions as UpSet.js addon for aggregated set data

    Type parameters

    • T

    Parameters

    • prop: keyof T | ((v: T) => string)

      accessor or name of the property within the element

    • elems: readonly T[] | { categories: readonly (string | ICategory)[] }

      list of elements or their categories

    • options: Partial<Pick<UpSetAddon<ISetLike<T>, T, ReactNode>, "size" | "position" | "name">> & ICategoricalStyleProps = {}

      additional options

    Returns UpSetAddon<ISetLike<T>, T, React.ReactNode>

categoricalAggregatedAddon

  • categoricalAggregatedAddon<T>(acc: (v: readonly T[]) => ICategoryBins, __namedParameters?: Partial<Pick<UpSetAddon<ISetLike<T>, T, ReactNode>, "size" | "position" | "name">> & ICategoricalStyleProps): UpSetAddon<ISetLike<T>, T, React.ReactNode>

simpleScale

  • simpleScale(domain: [number, number], range: [number, number], orient?: "horizontal" | "vertical"): NumericScaleLike