Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UpSetFullPropsG<T, C, N, L>

Type parameters

  • T

  • C

  • N

  • L

Hierarchy

Index

Properties

alternatingBackgroundColor

alternatingBackgroundColor: string | false

color used to highlight alternating background in the sets for easier comparison set to false to disable alternating pattern

bandScale

bandScale: BandScaleFactory | "band"

band scale to use, either constant 'band' or a custom factory function

default

band

barLabelOffset

barLabelOffset: number

offset of the label on top or left of a bar

default

2

barPadding

barPadding: number

padding argument for scaleBand

default

0.1

Optional children

children?: N

className

className: string

optional class name for the SVG element

classNames

object of classnames for certain sub elements

color

color: string

main color to render bars and dark dots

default

black

combinationAddonPadding

combinationAddonPadding: number

padding between combination addons

default

1

combinationAddons

combinationAddons: UpSetAddons<ISetCombination<T>, T, N>

list of addons that should be rendered along the vertical set combinations

combinationMaxScale

combinationMaxScale: number

maximum combination scale value

default

derived from the combinations

combinationName

combinationName: L

combination axis label

default

Intersection Size

combinationNameAxisOffset

combinationNameAxisOffset: number | "auto"

offset of the combination name from the combination y axis. 'auto' means that it will be guessed according to the current values

default

auto

combinations

the set combinations to visualize or the generation options to generate the set combinations by default all set intersections are computed

description

description: L

optional description text for the plot

dotPadding

dotPadding: number

padding factor the for dots

default

0.7

emptySelection

emptySelection: boolean

render empty selection for better performance

default

true

exportButtons

exportButtons: boolean | UpSetExportOptions

show export buttons

default

true

fontFamily

fontFamily: string | false

specify the overall font family, set to false to use the default font family

default

sans-serif

fontSizes

fontSizes: UpSetFontSizes

specify font sizes for different sub elements

hasSelectionColor

hasSelectionColor: string

main color used when a selection is present

default

undefined

hasSelectionOpacity

hasSelectionOpacity: number

main opacity used when a selection is present

default

undefined

height

height: number

height of the chart

heightRatios

heightRatios: [number]

height ratios for different plots, if a number larger than 1 is given, it is interpreted as pixel values [intersection chart, set chart = derived]

default

[0.6]

hoverHintColor

hoverHintColor: string

color for the hover hint rects for set combinations

id

id: string

optional unique id of the set element. Note: if set, it is will also be used as a CSS class suffix

notMemberColor

notMemberColor: string

color for dots that indicate it is not a member

numericScale

numericScale: NumericScaleFactory | "linear" | "log"

numeric scale to use, either constants 'linear' or 'log' or a custom factory function

default

linear

opacity

opacity: number

main opacity

default

undefined

padding

padding: number

padding within the svg

default

5

Optional queries

queries?: UpSetQueries<T>

list of queries as an alternative to provide a single selection

queryLegend

queryLegend: boolean

show a legend of queries enabled by default when queries are set

Optional selection

selection?: UpSetSelection<T>

the selection of the plot. Can be a set like (set or set combination), an array of elements, or a function to compute the overlap to a given set

selectionColor

selectionColor: string

color used to highlight the selection

default

orange

setAddonPadding

setAddonPadding: number

padding between combination addons

default

1

setAddons

setAddons: UpSetAddons<ISet<T>, T, N>

list of addons that should be rendered along the horizontal sets

setLabelAlignment

setLabelAlignment: "left" | "center" | "right"

alignment for the set labels

default

'center'

setMaxScale

setMaxScale: number

maximum set scale value

default

derived from the sets

setName

setName: L

set axis label

default

Set Size

setNameAxisOffset

setNameAxisOffset: number | "auto"

offset of the set name from the set x axis. 'auto' means that it will be guessed according to the current values

default

auto

sets

sets: ISets<T>

the sets to visualize

style

style: C

style object applied to the SVG element

styles

styles: UpSetMultiStyle<C>

object for applying styles to certain sub elements

textColor

textColor: string

main color to render text

default

black

theme

basic theme of the plot either 'light' or 'dark'

default

light

title

title: L

optional title text for the plot

tooltips

tooltips: boolean

whether to render tooltips aka title attributes

default

true

width

width: number

width of the chart

widthRatios

widthRatios: [number, number]

width ratios for different plots, if a number larger than 1 is given, it is interpreted as pixel values [set chart, set labels, intersection chart = derived]

default

[0.21, 0.19]

Methods

combinationChildrenFactory

Optional onClick

Optional onContextMenu

Optional onHover

Optional onMouseMove

setChildrenFactory

  • setChildrenFactory(set: ISet<T>): N
  • factory to create extra react nodes for each set

    Parameters

    Returns N

styleFactory

  • styleFactory(rules: string): N
  • factory to create the style tag

    Parameters

    • rules: string

    Returns N

Optional toElemKey

  • toElemKey(elem: T): string

toKey

  • optional function to identify the same sets

    Parameters

    • set: ISetLike<T>

      the set to generate a key for

    Returns string