tick

์ถ•์— ํ‘œ์‹œ๋˜๋Š” tick ์œ„์น˜์™€ ํ‘œ์‹œ ๋งˆํฌ์— ๊ด€ํ•œ ์„ค์ • ๋ชจ๋ธ.

Properties

baseAxis: string | number

tick ๊ฐœ์ˆ˜๋ฅผ ๋งž์ถฐ์•ผ ํ•˜๋Š” ๋Œ€์ƒ axis.
base์˜ strictMin, strictMax๊ฐ€ ์„ค์ •๋˜์ง€ ์•Š์•„์•ผ ํ•œ๋‹ค. base์˜ startFit, endFilt์˜ tick ์œผ๋กœ ์„ค์ •๋˜์–ด์•ผ ํ•œ๋‹ค.

default: undefined

baseRange: boolean

baseAxis ๊ฐ€ ์ง€์ •๋œ ๊ฒฝ์šฐ, true๋กœ ์ง€์ •ํ•˜๋ฉด base ์ถ•์˜ ๋ฒ”์œ„์™€ ๋™์ผํ•˜๊ฒŒ ์ถ•์˜ ์ตœ์†Œ/์ตœ๋Œ€๊ฐ€ ๊ฒฐ์ •๋œ๋‹ค.

default: false

gap: number

tick ๋ผ์ธ๊ณผ ๋‹ค๋ฅธ ์š”์†Œ(label์ด๋‚˜ title) ์‚ฌ์ด์˜ ๊ฐ„๊ฒฉ.

default: 3

length: number

axis tick line length.

default: 7

stepInterval: string | number

tick๋“ค ์‚ฌ์ด์˜ ๊ฐ’ ๊ฐ„๊ฒฉ.

default: undefined

stepPixels: number

tick๋“ค ์‚ฌ์ด์˜ ๋Œ€๋žต์ ์ธ ํ”ฝ์…€ ๊ฐ„๊ฒฉ.
๋‹ค๋ฅธ ์„ค์ •์ด ์—†๋‹ค๋ฉด ์ด ๊ฐ’์„ ๊ธฐ์ค€์œผ๋กœ tick ๊ฐœ์ˆ˜๊ฐ€ ๊ฒฐ์ •๋œ๋‹ค.

default: 72

steps: number[]

๋ช…์‹œ์ ์œผ๋กœ ์„ค์ •ํ•˜๋Š” setp ๋ชฉ๋ก
์–‘ ๋์„ NaN์œผ๋กœ ์ง€์ •ํ•˜๋ฉด ๊ณ„์‚ฐ๋œ min/max๋กœ ์„ค์ •๋œ๋‹ค. ์ด ๋ชฉ๋ก์ด ์„ค์ •๋˜๋ฉด ์Šคํ… ์„ค์ •๊ณผ ๊ด€๋ จ๋œ ๋‹ค๋ฅธ ์†์„ฑ๋“ค์€ ๋ฌด์‹œ๋œ๋‹ค. stepCallback ์ด ์ง€์ •๋˜๋ฉด ์ด ์†์„ฑ์€ ๋ฌด์‹œ๋œ๋‹ค.

default: undefined

style: SVGStyles | string

์Šคํƒ€์ผ์…‹ ํ˜น์€ class selector.

  • SVGStyles
NameTypeOptional
fillstringtrue
fillOpacitystringtrue
fontFamilystringtrue
fontSizestringtrue
fontStylestringtrue
fontWeightstringtrue
rxstringtrue
strokestringtrue
strokeDasharraystringtrue
strokeWidthstringtrue
textAlign'center' | 'left' | 'right'true

visible: boolean

ํ‘œ์‹œ ์—ฌ๋ถ€.

default: true