label
์ถ ๊ฐ์ด๋ label ์ค์ ๋ชจ๋ธ.
Properties
align: 'center'|'left'|'right'
์ํ ์ ๋ ฌ.
'center'
'left'
'right'
default: 'left'
autoContrast: boolean
ํ ์คํธ๊ฐ data point ๋ด๋ถ์ ํ์๋๋ ๊ฒฝ์ฐ ํฌ์ธํธ ์์๊ณผ ๋์กฐ๋๋๋ก ํ์ํ๋ค.
๋ฐ๊ฒ ํ์ํ ๋๋ lightStyle ์ ์ ์ฉํ๊ณ , ์ด๋ก๊ฒ ํ์ํ ๋๋ darkStyle ์ด ์ ์ฉ๋๋ค. brightStyle์ด ์ง์ ๋์ง ์์ผ๋ฉด 'rct-text-light'์ด, darkStyle์ด ์ง์ ๋์ง ์์ผ๋ฉด 'rct-text-dark'๊ฐ ๊ธฐ๋ณธ ์ ์ฉ๋๋ค.
default: true
backgroundStyle: SVGStyles | string
SVGStyles
Name | Type | Optional |
---|---|---|
fill | string | true |
fillOpacity | string | true |
fontFamily | string | true |
fontSize | string | true |
fontStyle | string | true |
fontWeight | string | true |
rx | string | true |
stroke | string | true |
strokeDasharray | string | true |
strokeWidth | string | true |
textAlign | 'center' | 'left' | 'right' | true |
darkStyle: SVGStyles | string
SVGStyles
Name | Type | Optional |
---|---|---|
fill | string | true |
fillOpacity | string | true |
fontFamily | string | true |
fontSize | string | true |
fontStyle | string | true |
fontWeight | string | true |
rx | string | true |
stroke | string | true |
strokeDasharray | string | true |
strokeWidth | string | true |
textAlign | 'center' | 'left' | 'right' | true |
effect: 'background'|'none'|'outline'
'background'
ํ ์คํธ ๋ฐฐ๊ฒฝ ์์๋ฅผ ํ์ํ๋ค. ๋ฐฐ๊ฒฝ ์์์ backgroundStyle ์ด ์ ์ฉ๋๋ค. ์คํ์ผ์ด ์ ์ฉ๋์ง ์์ผ๋ฉด ๊ธฐ๋ณธ 'rct-text-background'์ด ์ ์ฉ๋๋ค.'none'
ํจ๊ณผ ์์.'outline'
ํ ์คํธ ์์๊ณผ ๋์กฐ๋๋ ์์์ผ๋ก ํ ์คํธ ์ธ๊ณฝ์ ๊ตฌ๋ถ ํ์ํ๋ค.
default: 'none'
lightStyle: SVGStyles | string
SVGStyles
Name | Type | Optional |
---|---|---|
fill | string | true |
fillOpacity | string | true |
fontFamily | string | true |
fontSize | string | true |
fontStyle | string | true |
fontWeight | string | true |
rx | string | true |
stroke | string | true |
strokeDasharray | string | true |
strokeWidth | string | true |
textAlign | 'center' | 'left' | 'right' | true |
numberFormat: string
label์ด ์ซ์์ผ ๋ ํ์ ํ์.
default: undefined
numberSymbols: string
์ถ์ tick ๊ฐ๊ฒฉ์ด 1000 ์ด์์ธ ํฐ ์๋ฅผ ํ์ํ ๋ ์ด ์์ฑ์ ์ง์ ํ symbol์ ์ด์ฉํด์ ์ถ์ฝํ์ผ๋ก ํ์ํ๋ค.
default: undefined
offsetX: number
label๊ณผ ๊ฐ์ด๋ ์ฌ์ด์ ์ํ ๊ฐ๊ฒฉ.
default: 3
offsetY: number
label๊ณผ ๊ฐ์ด๋ ์ฌ์ด์ ์์ง ๊ฐ๊ฒฉ.
default: 3
position
body ์์ญ ๊ธฐ์ค, ํ์ ์์น.
default: GuideLabelPosition.INSIDE
prefix: string
label ๋ฌธ์์ด ์์ ์ถ๊ฐ๋๋ ๋ฌธ์์ด.
default: undefined
style: SVGStyles | string
์คํ์ผ์ ํน์ class selector.
SVGStyles
Name | Type | Optional |
---|---|---|
fill | string | true |
fillOpacity | string | true |
fontFamily | string | true |
fontSize | string | true |
fontStyle | string | true |
fontWeight | string | true |
rx | string | true |
stroke | string | true |
strokeDasharray | string | true |
strokeWidth | string | true |
textAlign | 'center' | 'left' | 'right' | true |
suffix: string
label ๋ฌธ์์ด ๋์ ์ถ๊ฐ๋๋ ๋ฌธ์์ด.
default: undefined
text: string
rich text format์ ์ง์ ํ ์ ์๋ค.
default: undefined
verticalAlign: 'bottom'|'middle'|'top'
์์ง ์ ๋ ฌ.
'bottom'
'middle'
'top'
default: 'top'
visible: boolean
ํ์ ์ฌ๋ถ.
default: true