Skip to main content

BarChartRodLabel

A text label drawn past the tip of a BarChartRod.

Properties

  • angle - The rotation of the label, in degrees.
  • offset - The position of the label relative to the tip of the rod, in logical pixels.
  • text - The text of the label.
  • text_style - The text style of the label.

Properties​

angleclass-attributeinstance-attribute​

angle: Number = 0

The rotation of the label, in degrees.

offsetclass-attributeinstance-attribute​

offset: Offset = field(
    default_factory=lambda: Offset(0, 8)
)

The position of the label relative to the tip of the rod, in logical pixels.

x moves the label sideways, and y moves it away from the rod.

textclass-attributeinstance-attribute​

text: str = ''

The text of the label.

If empty, no label is drawn.

text_styleclass-attributeinstance-attribute​

text_style: TextStyle | None = None

The text style of the label.

Defaults to the theme's TextTheme.body_medium.