TooltipOptions

data class TooltipOptions(val enabled: Boolean = true, val external: (ctx: TooltipContext) -> Unit? = null, val mode: InteractionMode? = null, val intersect: Boolean? = null, val position: TooltipPosition? = null, val callbacks: TooltipCallback? = null, val filter: (e: TooltipItem, index: Number, array: Array<TooltipItem>, data: ChartData) -> Boolean? = null, val itemSort: (a: TooltipItem, b: TooltipItem, data: ChartData) -> Number? = null, val backgroundColor: Color? = null, val titleColor: Color? = null, val titleFont: ChartFont? = null, val titleAlign: TooltipAlign? = null, val titleSpacing: Int? = null, val titleMarginBottom: Int? = null, val bodyColor: Color? = null, val bodyFont: ChartFont? = null, val bodyAlign: TooltipAlign? = null, val bodySpacing: Int? = null, val footerColor: Color? = null, val footerFont: ChartFont? = null, val footerAlign: TooltipAlign? = null, val footerSpacing: Int? = null, val footerMarginTop: Int? = null, val padding: LayoutPaddingObject? = null, val caretPadding: Int? = null, val caretSize: Int? = null, val cornerRadius: Int? = null, val multiKeyBackground: Color? = null, val displayColors: Boolean? = null, val boxWidth: Int? = null, val boxHeight: Int? = null, val boxPadding: Number? = null, val usePointStyle: Boolean? = null, val borderColor: Color? = null, val borderWidth: Int? = null, val rtl: Boolean? = null, val textDirection: TextDirection? = null, val xAlign: TooltipAlign? = null, val yAlign: TooltipAlign? = null)(source)

Chart tooltip options.

Constructors

Link copied to clipboard
constructor(enabled: Boolean = true, external: (ctx: TooltipContext) -> Unit? = null, mode: InteractionMode? = null, intersect: Boolean? = null, position: TooltipPosition? = null, callbacks: TooltipCallback? = null, filter: (e: TooltipItem, index: Number, array: Array<TooltipItem>, data: ChartData) -> Boolean? = null, itemSort: (a: TooltipItem, b: TooltipItem, data: ChartData) -> Number? = null, backgroundColor: Color? = null, titleColor: Color? = null, titleFont: ChartFont? = null, titleAlign: TooltipAlign? = null, titleSpacing: Int? = null, titleMarginBottom: Int? = null, bodyColor: Color? = null, bodyFont: ChartFont? = null, bodyAlign: TooltipAlign? = null, bodySpacing: Int? = null, footerColor: Color? = null, footerFont: ChartFont? = null, footerAlign: TooltipAlign? = null, footerSpacing: Int? = null, footerMarginTop: Int? = null, padding: LayoutPaddingObject? = null, caretPadding: Int? = null, caretSize: Int? = null, cornerRadius: Int? = null, multiKeyBackground: Color? = null, displayColors: Boolean? = null, boxWidth: Int? = null, boxHeight: Int? = null, boxPadding: Number? = null, usePointStyle: Boolean? = null, borderColor: Color? = null, borderWidth: Int? = null, rtl: Boolean? = null, textDirection: TextDirection? = null, xAlign: TooltipAlign? = null, yAlign: TooltipAlign? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val external: (ctx: TooltipContext) -> Unit?
Link copied to clipboard
val filter: (e: TooltipItem, index: Number, array: Array<TooltipItem>, data: ChartData) -> Boolean?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rtl: Boolean?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun TooltipOptions.toJs(): dynamic

An extension function to convert configuration class to JS object.