Skip to main content

BarLabelDecorator

labelAnchor

TypeDefault
BarLabelAnchor?null

position label bar chart item

BarLabelAnchor

TypeDescription
startPositions the label at the start/bottom of the bar
start
middlePositions the label in the center of the bar
middle
endPositions the label at the end/top of the bar
end

barLabelPosition

TypeDefault
BarLabelPosition?BarLabelPosition.auto

Configures where to place the label relative to the bars.

BarLabelPosition

TypeDescription
autoIt automatically tries to place the label inside the bar first and if it doesn't fit it will be set outside the bar
Auto
insideAlways place labels inside the bar
Auto
outsideAlways place labels on the outside of the bar
Auto
rightPlaces the label to the right inside the bar, and applies it to the horizontal bar. For now the horizontal bar in Combo cannot be used

labelPadding

TypeDefault
int5

Space before and after the label text.

Label Padding Label Padding 2


insideLabelStyle

TypeDefault
LabelStyle?null

style for label when the position is inside


outsideLabelStyle

TypeDefault
LabelStyle?null

style for label when the position is outside