Skip to main content

Interface: G2AxisLabels

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

Axis options for a G2 band axis whose categories are teams: spread them into axis.x.

Properties​

labelAutoHide​

labelAutoHide: false

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

No label is hidden or rotated: each logo box is one band wide, so they never overlap.


labelAutoRotate​

labelAutoRotate: false

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


labelOpacity​

labelOpacity: 1

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

G2's theme draws labels at 0.45 opacity: a logo is drawn whole.


labelRender​

labelRender: (datum) => string

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

HTML for each label: the team's logo, or the category's own text where it has none.

Parameters​

datum​

G2AxisDatum

Returns​

string


transform​

transform: []

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