Skip to main content

LineChart


Example

Props

NameTypeDefault ValueRequiredDescription
dataColors("brandPrimary" | "brandSecondary" | "brandTertiary" | "backgroundPrimary" | "backgroundSecondary" | "backgroundOverlay" | "backgroundPrimaryInverse" | "backgroundSecondaryInverse" | ... 88 more ... | "brightPink")[]No
disableAnimationbooleanNo
hideLegendbooleanNo
hideTooltipbooleanNo
dataRecord<D | C, unknown>[]Yes
categoriesC[]Yes
dataKeystringYes
hideXAxisbooleanNo
hideYAxisbooleanNo
lineType"linear" | "step" | "natural" | "monotoneX" | "monotoneY" | "monotone" | "stepBefore" | "stepAfter"monotoneNo
xAxisValueFormatterValueFormatterNo
yAxisValueFormatterValueFormatterNo

Related components