Skip to main content

Interface: LogoBumpProps

Defined in: packages/sdvplot/src/react/nivo.tsx:10

<LogoBump> props: the series, the league their ids belong to, and how to draw the logos; every other prop goes to nivo's Bump as is (typed loosely, so sdvplot/react's types never name @nivo/bump, an optional peer).

Indexable​

[prop: string]: unknown

Any other nivo Bump prop (margin, axes, pointSize, animate, theme, ...).

Properties​

at?​

optional at?: "first" | "last" | "all"

Defined in: packages/sdvplot/src/react/nivo.tsx:27

Which points get a logo: "last" (default), "first" or "all".


background?​

optional background?: string

Defined in: packages/sdvplot/src/react/nivo.tsx:23

The chart's background: the line colours keep 3:1 contrast against it and aim to stay distinct (teamColors).


data​

data: readonly object[]

Defined in: packages/sdvplot/src/react/nivo.tsx:12

nivo Bump series, { id, data: [{ x, y }] }: each id is a team (abbreviation, name or id).


height?​

optional height?: number

Defined in: packages/sdvplot/src/react/nivo.tsx:35

Chart height in px (see width).


idSystem?​

optional idSystem?: IdSystem

Defined in: packages/sdvplot/src/react/nivo.tsx:21

How the series' ids are read. Default "auto".


layers?​

optional layers?: readonly unknown[]

Defined in: packages/sdvplot/src/react/nivo.tsx:40

nivo's layers. Default nivo's own: grid, axes, labels, lines, points, then the logos, then mesh. Given, the logos are appended after them all, after any "mesh" too, which is harmless: the logo layer has pointer-events: none.


league​

league: "aaf" | "ahl" | "ajhl" | "bchl" | "cchl" | "cebl" | "cfb" | "cfl" | "chl" | "cricket" | "easl" | "echl" | "f1" | "fiba" | "gojhl" | "iihf" | "kijhl" | "lba" | "mbb" | "mhl" | "milb" | "mjhl" | "mlb" | "nba" | "nbagl" | "nbl" | "ncaa_baseball" | "ncaa_mhockey" | "ncaa_softball" | "ncaa_whockey" | "nfl" | "nhl" | "nojhl" | "ohl" | "ojhl" | "phf" | "pwhl" | "qmjhl" | "sjhl" | "soccer" | "sphl" | "ufl" | "usfl" | "ushl" | "vijhl" | "wbb" | "whl" | "wnba" | "xfl"

Defined in: packages/sdvplot/src/react/nivo.tsx:17

The league the series' teams belong to, e.g. "nfl".


logoHeight?​

optional logoHeight?: number

Defined in: packages/sdvplot/src/react/nivo.tsx:25

Logo height as a fraction of the plot height, in (0, 1]. Default 0.08.


markType?​

optional markType?: MarkType

Defined in: packages/sdvplot/src/react/nivo.tsx:31

"logo" (default) or "wordmark".


season?​

optional season?: SeasonInput

Defined in: packages/sdvplot/src/react/nivo.tsx:19

The season the teams are resolved for.


variant?​

optional variant?: Variant

Defined in: packages/sdvplot/src/react/nivo.tsx:29

Logo variant, e.g. "dark". Default "default".


width?​

optional width?: number

Defined in: packages/sdvplot/src/react/nivo.tsx:33

Width and height in px. Both given: a fixed-size Bump; otherwise a ResponsiveBump that fills its parent.