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)

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
val backgroundColor: Color? = null
Link copied to clipboard
val bodyAlign: TooltipAlign? = null
Link copied to clipboard
val bodyColor: Color? = null
Link copied to clipboard
val bodyFont: ChartFont? = null
Link copied to clipboard
val bodySpacing: Int? = null
Link copied to clipboard
val borderColor: Color? = null
Link copied to clipboard
val borderWidth: Int? = null
Link copied to clipboard
val boxHeight: Int? = null
Link copied to clipboard
val boxPadding: Number? = null
Link copied to clipboard
val boxWidth: Int? = null
Link copied to clipboard
Link copied to clipboard
val caretPadding: Int? = null
Link copied to clipboard
val caretSize: Int? = null
Link copied to clipboard
val cornerRadius: Int? = null
Link copied to clipboard
val displayColors: Boolean? = null
Link copied to clipboard
val enabled: Boolean = true
Link copied to clipboard
val external: (ctx: TooltipContext) -> Unit? = null
Link copied to clipboard
val filter: (e: TooltipItem, index: Number, array: Array<TooltipItem>, data: ChartData) -> Boolean? = null
Link copied to clipboard
Link copied to clipboard
val footerColor: Color? = null
Link copied to clipboard
val footerFont: ChartFont? = null
Link copied to clipboard
val footerMarginTop: Int? = null
Link copied to clipboard
val footerSpacing: Int? = null
Link copied to clipboard
val intersect: Boolean? = null
Link copied to clipboard
val itemSort: (a: TooltipItem, b: TooltipItem, data: ChartData) -> Number? = null
Link copied to clipboard
val mode: InteractionMode? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rtl: Boolean? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val titleColor: Color? = null
Link copied to clipboard
val titleFont: ChartFont? = null
Link copied to clipboard
val titleMarginBottom: Int? = null
Link copied to clipboard
val titleSpacing: Int? = null
Link copied to clipboard
val usePointStyle: Boolean? = null
Link copied to clipboard
val xAlign: TooltipAlign? = null
Link copied to clipboard
val yAlign: TooltipAlign? = null

Functions

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

An extension function to convert configuration class to JS object.