Skip to main content

Interface: G2ImageMark

Defined in: packages/sdvplot/src/g2.ts:155

A G2 image mark (G2 5's ImageMark, structurally): one image per drawable row, centred on the row's (x, y) in the view's own scales. Out of the tooltip and the legend.

Properties​

data​

data: G2ImageDatum[]

Defined in: packages/sdvplot/src/g2.ts:157


encode​

encode: object

Defined in: packages/sdvplot/src/g2.ts:158

src​

src: "sdv_src"

x​

x: string

y​

y: string


legend​

legend: false

Defined in: packages/sdvplot/src/g2.ts:165


style​

style: object

Defined in: packages/sdvplot/src/g2.ts:159

height​

height: (d) => number

Parameters​
d​

G2ImageDatum

Returns​

number

opacity​

opacity: number

width​

width: (d) => number

Parameters​
d​

G2ImageDatum

Returns​

number


tooltip​

tooltip: false

Defined in: packages/sdvplot/src/g2.ts:164


type​

type: "image"

Defined in: packages/sdvplot/src/g2.ts:156