Interface BarChartValueLabelsInsideBars

Interface for describing style of bar chart value labels when they are positioned inside bars.

Used with setValueLabels.

Hierarchy

  • BarChartValueLabelsInsideBars

Properties

displayStackedIndividuals: boolean

Only applies to stacked bar charts; is a label displayed for each individual sub category value?

displayStackedSum: boolean

Only applies to stacked bar charts; is a label displayed for the sum value of a stack?

Sum label is always positioned after the very last bar in a stack.

Label text formatter. See BarChartLabelFormatter for examples.

labelFillStyle: FillStyle

Label fill style. See FillStyle for examples.

labelFont: FontSettings

Label font. See FontSettings for examples.

labelMargin: number

Pixels margin before label. Exact behavior depends on value of position.

  • 'inside-bar-end' - margin applied between bar end and label.
  • 'inside-bar-centered' - no effect.
  • 'inside-bar-start' - margin applied between bar start and label.
  • 'inside-bar' - same as 'inside-bar-end'
labelRotation: number

Label rotation as degrees.

labelShadow: undefined | Color

Not to be confused with GlowEffect

Introduced in v7.0. API may be changed according to user feedback and reports.
position: "inside-bar" | "inside-bar-end" | "inside-bar-centered" | "inside-bar-start"