# 介面:BubbleControllerDatasetOptions
# 階層
ScriptableAndArrayOptions
<PointOptions
,ScriptableContext
<"bubble"
>>ScriptableAndArrayOptions
<PointHoverOptions
,ScriptableContext
<"bubble"
>>↳
BubbleControllerDatasetOptions
# 屬性
# backgroundColor
• backgroundColor: ScriptableAndArray
<Color
, ScriptableContext
<"bubble"
>>
# 繼承自
ScriptableAndArrayOptions.backgroundColor
# 定義於
types/index.d.ts:1807 (在新視窗中開啟)
# borderColor
• borderColor: ScriptableAndArray
<Color
, ScriptableContext
<"bubble"
>>
# 繼承自
ScriptableAndArrayOptions.borderColor
# 定義於
types/index.d.ts:1806 (在新視窗中開啟)
# borderWidth
• borderWidth: ScriptableAndArray
<number
, ScriptableContext
<"bubble"
>>
# 繼承自
ScriptableAndArrayOptions.borderWidth
# 定義於
types/index.d.ts:1805 (在新視窗中開啟)
# clip
• clip: number
| false
| ChartArea
如何相對於圖表區域進行裁剪。正值允許溢出,負值則在圖表區域內裁剪該像素數量。0 = 在圖表區域裁剪。裁剪也可以針對每一側進行配置:clip: {left: 5, top: false, right: -2, bottom: 0}
# 繼承自
# 定義於
# drawActiveElementsOnTop
• drawActiveElementsOnTop: ScriptableAndArray
<boolean
, ScriptableContext
<"bubble"
>>
在數據集的其他元素之上繪製活動元素。
預設值
true
# 繼承自
ScriptableAndArrayOptions.drawActiveElementsOnTop
# 定義於
types/index.d.ts:2008 (在新視窗中開啟)
# hidden
• hidden: boolean
配置數據集的可見性狀態。將其設置為 true,以將數據集從圖表中隱藏。
預設值
false
# 繼承自
ControllerDatasetOptions.hidden
# 定義於
# hitRadius
• hitRadius: ScriptableAndArray
<number
, ScriptableContext
<"bubble"
>>
為點的半徑新增額外的半徑,用於點擊偵測。
預設值
1
# 繼承自
ScriptableAndArrayOptions.hitRadius
# 定義於
types/index.d.ts:1993 (在新視窗中開啟)
# hoverBackgroundColor
• hoverBackgroundColor: ScriptableAndArray
<Color
, ScriptableContext
<"bubble"
>>
# 繼承自
ScriptableAndArrayOptions.hoverBackgroundColor
# 定義於
types/index.d.ts:1813 (在新視窗中開啟)
# hoverBorderColor
• hoverBorderColor: ScriptableAndArray
<Color
, ScriptableContext
<"bubble"
>>
# 繼承自
ScriptableAndArrayOptions.hoverBorderColor
# 定義於
types/index.d.ts:1812 (opens new window)
# hoverBorderWidth
• hoverBorderWidth: ScriptableAndArray
<number
, ScriptableContext
<"bubble"
>>
# 繼承自
ScriptableAndArrayOptions.hoverBorderWidth
# 定義於
types/index.d.ts:1811 (opens new window)
# hoverRadius
• hoverRadius: ScriptableAndArray
<number
, ScriptableContext
<"bubble"
>>
滑鼠懸停時的點半徑。
預設值
4
# 繼承自
ScriptableAndArrayOptions.hoverRadius
# 定義於
types/index.d.ts:2016 (opens new window)
# indexAxis
• indexAxis: "x"
| "y"
圖表的基本軸。垂直圖表為 'x',水平圖表為 'y'。
預設值
'x'
# 繼承自
ControllerDatasetOptions.indexAxis
# 定義於
types/index.d.ts:71 (opens new window)
# label
• label: string
數據集的標籤,會顯示在圖例和工具提示中。
# 繼承自
ControllerDatasetOptions.label
# 定義於
types/index.d.ts:79 (opens new window)
# normalized
• normalized: boolean
如果您提供的數據索引是唯一的、已排序的,並且在數據集之間是一致的,並且提供 normalized: true 選項以告知 Chart.js 您已完成此操作,則 Chart.js 的速度最快。
# 繼承自
ControllerDatasetOptions.normalized
# 定義於
types/index.d.ts:63 (opens new window)
# order
• order: number
數據集的繪製順序。也會影響堆疊、工具提示和圖例的順序。
# 繼承自
ControllerDatasetOptions.order
# 定義於
types/index.d.ts:83 (opens new window)
# parsing
• parsing: false
| { [key: string]
: string
; }
如何解析數據集。可以通過在圖表選項或數據集中指定 parsing: false 來禁用解析。如果禁用解析,數據必須按照相關圖表類型和刻度在內部使用的格式進行排序。
# 繼承自
ControllerDatasetOptions.parsing
# 定義於
types/index.d.ts:54 (opens new window)
# pointStyle
• pointStyle: ScriptableAndArray
<PointStyle
, ScriptableContext
<"bubble"
>>
點樣式
預設值
'circle;'
# 繼承自
ScriptableAndArrayOptions.pointStyle
# 定義於
types/index.d.ts:1998 (opens new window)
# radius
• radius: ScriptableAndArray
<number
, ScriptableContext
<"bubble"
>>
點半徑
預設值
3
# 繼承自
ScriptableAndArrayOptions.radius
# 定義於
types/index.d.ts:1988 (opens new window)
# rotation
• rotation: ScriptableAndArray
<number
, ScriptableContext
<"bubble"
>>
點旋轉(以度為單位)。
預設值
0
# 繼承自
ScriptableAndArrayOptions.rotation
# 定義於
types/index.d.ts:2003 (opens new window)
# stack
• stack: string
此數據集所屬組的 ID(堆疊時,每個組將是一個單獨的堆疊)。
# 繼承自
ControllerDatasetOptions.stack
# 定義於
types/index.d.ts:88 (opens new window)
# xAxisID
• xAxisID: string
要在其上繪製此數據集的 X 軸 ID。
# 定義於
types/index.d.ts:169 (opens new window)
# yAxisID
• yAxisID: string
要在其上繪製此數據集的 Y 軸 ID。