ViolinPlot
Data Visualization
visx 기반 바이올린 플롯.
Usage
여러 집단의 분포 밀도와 중앙값·사분위를 한 모양에서 비교할 때 사용한다.
import
import
예제를 복사해 쓸 때 필요한 준비
• @mildang/styled-system 은 이 저장소에서 Panda 가 생성하는 산출물이다. 저장소 안에서는 turbo run ship 이후 쓸 수 있고, 패키지 소비자는 자기 Panda 산출물이나 다른 레이아웃 수단으로 바꿔야 한다.
API Reference
ViolinPlot Props
Prop
Type
Default
data
필수
TDatum[]
지정 안 함
valueKey
필수
string
지정 안 함
bandwidth
number
지정 안 함
categoryKey
string
지정 안 함
children
ReactNode
지정 안 함
className
string
지정 안 함
colors
string[]
지정 안 함
legendPosition
"bottom" | "left" | "right" | "top"
bottom
margin
Partial<ChartMargin>
지정 안 함
paints
ChartPaint[]
지정 안 함
showBox
boolean
true
showGrid
boolean
true
showLegend
boolean
false
showTooltip
boolean
false
showXAxis
boolean
true
showYAxis
boolean
true
statLabels
Partial<Record<"min" | "max" | "count" | "q1" | "median" | "q3", string>>
지정 안 함
valueFormat
(value: number) => string
(value: number) => value.toLocaleString()
valueLabel
string
전체
xAxisProps
ViolinPlotAxisProps
지정 안 함
yAxisProps
ViolinPlotAxisProps
지정 안 함