# インターフェース: TickOptions

# プロパティ

# backdropColor

• **backdropColor**: Scriptable<Color, ScriptableScaleContext>

ラベルの背景色。

デフォルト

'rgba(255, 255, 255, 0.75)'

# 定義場所

types/index.d.ts:3031 (新しいウィンドウで開きます)


# backdropPadding

• **backdropPadding**: number | ChartArea

目盛り背景のパディング。

デフォルト

2

# 定義場所

types/index.d.ts:3036 (新しいウィンドウで開きます)


# callback

• **callback**: (this: Scale<CoreScaleOptions>, tickValue: string | number, index: number, ticks: Tick[]) => string | number | string[] | number[]

# 型宣言

▸ (this, tickValue, index, ticks): string | number | `string[] | `number[]

目盛り値をチャートに表示する文字列表現を返します。 callbackを参照してください。

# パラメータ
名前
this `Scale`<`CoreScaleOptions`>
tickValue string | number
index number
ticks Tick[]
# 戻り値

string | number | string[] | number[]

# 定義場所

types/index.d.ts:3041 (新しいウィンドウで開きます)


# color

• **color**: `ScriptableAndArray`<`Color`, `ScriptableScaleContext`>

目盛りの色

参照

Defaults.color

# 定義場所

types/index.d.ts:3051 (新しいウィンドウで開きます)


# display

• **display**: boolean

trueの場合、目盛りラベルを表示します。

デフォルト

true

# 定義場所

types/index.d.ts:3046 (新しいウィンドウで開きます)


# font

• **font**: `ScriptableAndScriptableOptions`<`Partial`<`FontSpec`>, `ScriptableScaleContext`>

フォントを参照

# 定義場所

types/index.d.ts:3055 (新しいウィンドウで開きます)


# major

• **major**: Object

# 型宣言

名前 説明
enabled boolean trueの場合、主目盛りが生成されます。主目盛りは自動スキップに影響し、majorはスクリプト可能なオプションコンテキストの目盛りで定義されます。 デフォルト false

# 定義場所

types/index.d.ts:3081 (新しいウィンドウで開きます)


# padding

• **padding**: `number`

軸からの目盛りラベルのオフセットを設定します

# 定義場所

types/index.d.ts:3059 (新しいウィンドウで開きます)


# showLabelBackdrop

• **showLabelBackdrop**: `Scriptable`<`boolean`, `ScriptableScaleContext`>

trueの場合、目盛りラベルの背後に背景を描画します。

デフォルト

false

# 定義場所

types/index.d.ts:3064 (新しいウィンドウで開きます)


# textStrokeColor

textStrokeColor: Scriptable<Color, ScriptableScaleContext>

テキストの周りのストロークの色です。

デフォルト

未定義

# 定義場所

types/index.d.ts:3069 (新しいウィンドウが開きます)


# textStrokeWidth

textStrokeWidth: Scriptable<number, ScriptableScaleContext>

テキストの周りのストロークの幅です。

デフォルト

0

# 定義場所

types/index.d.ts:3074 (新しいウィンドウが開きます)


# z

z: number

目盛りレイヤーのz-indexです。目盛りがチャート領域に描画される場合に役立ちます。 0以下の値はデータセットの下に、0より大きい値は上に描画されます。

デフォルト

0

# 定義場所

types/index.d.ts:3079 (新しいウィンドウが開きます)