WaterfallChart
Data Visualization
visx 기반 폭포 차트.
Usage
초기값에서 개별 증감이 누적되어 최종값이 되는 과정을 설명할 때 사용한다.
import
import
예제를 복사해 쓸 때 필요한 준비
• @mildang/styled-system 은 이 저장소에서 Panda 가 생성하는 산출물이다. 저장소 안에서는 turbo run ship 이후 쓸 수 있고, 패키지 소비자는 자기 Panda 산출물이나 다른 레이아웃 수단으로 바꿔야 한다.
API Reference
WaterfallChart Props
Prop
Type
Default
data
필수
TDatum[]
지정 안 함
labelKey
필수
string
지정 안 함
valueKey
필수
string
지정 안 함
className
string
지정 안 함
connectorColor
string
token('colors.neutral.border.base')
decreaseColor
string
token('colors.critical.surface.high')
decreaseLabel
string
감소
formatValue
(value: number) => string
(value: number) => value.toLocaleString()
increaseColor
string
token('colors.positive.surface.high')
increaseLabel
string
증가
legendPosition
"bottom" | "left" | "right" | "top"
bottom
margin
Partial<ChartMargin>
지정 안 함
showGrid
boolean
true
showLegend
boolean
false
showTooltip
boolean
false
showTotal
boolean
true
showValueText
boolean
false
showXAxis
boolean
true
showYAxis
boolean
true
totalColor
string
token('colors.info.surface.high')
totalLabel
string
합계