LollipopChart
Data Visualization
visx 기반 롤리팝 차트.
Usage
막대보다 가볍게 카테고리별 수치와 순서를 점·줄기로 비교할 때 사용한다.
import
import
예제를 복사해 쓸 때 필요한 준비
• @mildang/styled-system 은 이 저장소에서 Panda 가 생성하는 산출물이다. 저장소 안에서는 turbo run ship 이후 쓸 수 있고, 패키지 소비자는 자기 Panda 산출물이나 다른 레이아웃 수단으로 바꿔야 한다.
API Reference
LollipopChart Props
Prop
Type
Default
data
필수
TDatum[]
지정 안 함
xKey
필수
string
지정 안 함
yKey
필수
string
지정 안 함
className
string
지정 안 함
color
string
지정 안 함
label
string
지정 안 함
layout
"horizontal" | "vertical"
vertical
legendPosition
"bottom" | "left" | "right" | "top"
bottom
margin
Partial<ChartMargin>
지정 안 함
pointRadius
number
6
showGrid
boolean
true
showLegend
boolean
false
showTooltip
boolean
false
showValueText
boolean
false
showXAxis
boolean
true
showYAxis
boolean
true