Skip to content
Binary UIKit reference Stable

Sparkline

Compact inline line or area trend.

Choose Sparkline for a compact trend beside a metric when full axes and detailed comparison are unnecessary.

Interactive example

Loading interactive example

API

MemberTypeKindRequiredDefault
colorstringpropNo'var(--bd-series-1)'
curveSparklineCurvepropNo'monotone'
heightnumberpropNo24
labelstringpropNoundefined
pointsSparklinePoint[]propYes
showLastbooleanpropNofalse
strokeWidthnumberpropNo1.5
variantSparklineVariantpropNo'line'
widthnumberpropNo96
yMaxnumberpropNoundefined
yMinnumberpropNoundefined

Source

Loading source