# 介面:LineOptions
# 階層
-
↳
LineOptions
# 屬性
# backgroundColor
• backgroundColor: Color
# 繼承自
CommonElementOptions.backgroundColor
# 定義於
types/index.d.ts:1807 (在新視窗開啟)
# borderCapStyle
• borderCapStyle: CanvasLineCap
線條端點樣式。請參閱 MDN。
預設值
'butt'
# 定義於
types/index.d.ts:1887 (在新視窗開啟)
# borderColor
• borderColor: Color
# 繼承自
CommonElementOptions.borderColor
# 定義於
types/index.d.ts:1806 (在新視窗開啟)
# borderDash
• borderDash: number
[]
線條虛線。請參閱 MDN。
預設值
[]
# 定義於
types/index.d.ts:1892 (在新視窗開啟)
# borderDashOffset
• borderDashOffset: number
線條虛線偏移量。請參閱 MDN。
預設值
0.0
# 定義於
types/index.d.ts:1897 (在新視窗開啟)
# borderJoinStyle
• borderJoinStyle: CanvasLineJoin
線條接合樣式。請參閱 MDN。
預設值
'miter'
# 定義於
types/index.d.ts:1902 (在新視窗開啟)
# borderWidth
• borderWidth: number
# 繼承自
CommonElementOptions.borderWidth
# 定義於
types/index.d.ts:1805 (在新視窗開啟)
# capBezierPoints
• capBezierPoints: boolean
若為 true,則保持貝茲控制點在圖表內;若為 false,則不限制。
預設值
true
# 定義於
types/index.d.ts:1907 (在新視窗開啟)
# cubicInterpolationMode
• cubicInterpolationMode: "default"
| "monotone"
要套用的插值模式。
預設值
'default'
# 定義於
types/index.d.ts:1912 (在新視窗開啟)
# fill
• fill: FillTarget
| ComplexFillTarget
折線圖和雷達圖都支援資料集物件上的 fill 選項,可用於在兩個資料集之間或資料集與邊界之間建立區域,例如比例尺原點、起點或終點
# 定義於
types/index.d.ts:1926 (在新視窗開啟)
# segment
• segment: Object
# 型別宣告
名稱 | 型別 |
---|---|
backgroundColor | Scriptable <Color , ScriptableLineSegmentContext > |
borderCapStyle | Scriptable <CanvasLineCap , ScriptableLineSegmentContext > |
borderColor | Scriptable <Color , ScriptableLineSegmentContext > |
borderDash | Scriptable <number [], ScriptableLineSegmentContext > |
borderDashOffset | Scriptable <number , ScriptableLineSegmentContext > |
borderJoinStyle | Scriptable <CanvasLineJoin , ScriptableLineSegmentContext > |
borderWidth | Scriptable <number , ScriptableLineSegmentContext > |
# 定義於
# spanGaps
• spanGaps: number
| boolean
如果為 true,將會在沒有或為空值的資料點之間繪製線條。如果為 false,具有 NaN 值的資料點將會在線條中產生斷點。也可以是一個數值,指定要跨越的最大間隙長度。該值的單位取決於所使用的比例尺。
# 定義於
# stepped
• stepped: boolean
| "middle"
| "after"
| "before"
如果為 true,則將線條顯示為階梯線(張力將被忽略)。
預設值
false
# 定義於
# tension
• tension: number
貝茲曲線的張力(0 表示沒有貝茲曲線)。
預設值
0