Skip to main content

Function: withAxisLogos()

Call Signature​

withAxisLogos(spec, axis, o): VegaLiteSpec

Defined in: packages/sdvplot/src/vega.ts:422

Team logos (or wordmarks, markType) in place of the labels of a nominal or ordinal axis: a labelExpr blanks the resolved labels and an image layer draws them. Assumes the default axis orient (x at the bottom, y on the left) and that height is the plot height: an axis with orient: "top" or "right" gets its logos on the opposite side. The image layer never shows a tooltip, even when the spec turns tooltips on for every mark (config.mark.tooltip).

Parameters​

spec​

VegaLiteSpec

axis​

"x" | "y"

o​

AxisOptions

Returns​

VegaLiteSpec

Call Signature​

withAxisLogos<F>(spec, axis, o): F

Defined in: packages/sdvplot/src/vega.ts:423

Team logos (or wordmarks, markType) in place of the labels of a nominal or ordinal axis: a labelExpr blanks the resolved labels and an image layer draws them. Assumes the default axis orient (x at the bottom, y on the left) and that height is the plot height: an axis with orient: "top" or "right" gets its logos on the opposite side. The image layer never shows a tooltip, even when the spec turns tooltips on for every mark (config.mark.tooltip).

Type Parameters​

F​

F extends object

Parameters​

spec​

F

axis​

"x" | "y"

o​

AxisOptions

Returns​

F