# 介面:CoreInteractionOptions

# 階層

# 屬性

# axis

axis: InteractionAxis

定義計算距離時使用的方向。預設值為 'index' 模式的 'x',以及資料集和 'nearest' 模式的 'xy'。

# 定義於

types/index.d.ts:1579 (開啟新視窗)


# includeInvisible

includeInvisible: boolean

如果為 true,則在評估互動時,也會包含圖表區域外部的不可見點。

預設值

false

# 定義於

types/index.d.ts:1585 (開啟新視窗)


# intersect

intersect: boolean

如果為 true,則懸停模式僅在滑鼠位置與圖表上的項目相交時才適用。

預設值

true

# 定義於

types/index.d.ts:1574 (開啟新視窗)


# mode

mode: keyof InteractionModeMap

設定在工具提示中顯示的元素。詳細資訊請參閱「互動模式」。

預設值

'nearest'

# 定義於

types/index.d.ts:1569 (開啟新視窗)