charturbo - v0.1.0
    Preparing search index...

    Interface BarLabelOptions

    interface BarLabelOptions {
        color?: ColorInput;
        format?:
            | string
            | NumberFormatOptions
            | ((value: number, ctx: BarLabelContext) => string);
        position?: BarLabelPosition;
        rich?: RichTextStyles;
        rotate?: number;
        show?: boolean | "auto";
    }
    Index
    color?: ColorInput

    Text color (default: theme secondary text outside, light / dark by bar luminance inside)

    format?:
        | string
        | NumberFormatOptions
        | ((value: number, ctx: BarLabelContext) => string)

    Label text: a function of the raw value, a format spec ('.1f', '$,.0f', '.2s'; see chart-format.ts) or Intl.NumberFormat options (default: the value axis format, else a locale number with up to 2 decimals). Percent bars format the share and append %

    position?: BarLabelPosition

    Default 'outside'

    Rich text styles: a format function may return a template like '{big|42}{unit|k}' whose {name|text} runs use rich[name] (see chart-rich-text.ts). Without rich the text is shown as typed

    rotate?: number

    Text rotation in degrees, positive = anticlockwise like ECharts label.rotate (-90..90; default 0). The rotated text stays centered on its anchor; placement, the inside fit test and 'auto' collision hiding use the rotated text's bounding box

    show?: boolean | "auto"

    true (default when the object is given): every label at its position. 'auto': inside labels that do not fit move outside; labels that would leave the canvas, overlap another label, or (outside) cover another bar are hidden. false: none