interface TooltipOptions {
    customHTML?: ((data, defaultHTML) => string);
    enabled?: boolean;
    groupLabel?: string;
    showTotal?: boolean;
    totalLabel?: string;
    truncation?: TruncationOptions;
    valueFormatter?: ((value, label) => string);
}

Hierarchy (view full)

Properties

customHTML?: ((data, defaultHTML) => string)

custom function for returning tooltip HTML passed an array or object with the data, and then the default tooltip markup

Type declaration

    • (data, defaultHTML): string
    • Parameters

      • data: any
      • defaultHTML: string

      Returns string

enabled?: boolean

enable or disable tooltip

groupLabel?: string

customizes the Group label shown inside tooltips

showTotal?: boolean

show total of items

totalLabel?: string

customizes the Total label shown inside tooltips

truncation?: TruncationOptions
valueFormatter?: ((value, label) => string)

a function to format the tooltip values

Type declaration

    • (value, label): string
    • Parameters

      • value: any
      • label: string

      Returns string