data | any[]
| -
| |
config | ChartConfig
| -
| Chart configuration for colors and labels |
dataKeys | string | string[]
| -
| The key(s) to use for the line values. If multiple, multiple lines will be rendered. |
xAxisKey | string
| 'name'
| The key to use for the X axis categories |
showGrid | boolean
| true
| Whether to show the background grid |
showXAxis | boolean
| true
| Whether to show the X axis |
showYAxis | boolean
| true
| Whether to show the Y axis |
type | "step" | "basis" | "basisClosed" | "basisOpen" | "linear" | "linearClosed" | "natural" | "monotone" | "stepBefore" | "stepAfter"
| 'monotone'
| Curve type for the line ('basis' | 'basisClosed' | 'basisOpen' | 'linear' | 'linearClosed' | 'natural' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter') |
dot | boolean
| true
| Whether to show dots on the line |
strokeWidth | number
| 2
| |
showLegend | boolean
| false
| Whether to show a legend below the chart. Defaults to false. |
lineChartProps | any
| -
| Any additional props to pass to the Recharts LineChart component |
className | string
| -
| |
style | React.CSSProperties
| -
| |
title | React.ReactNode
| -
| |
actions | React.ReactNode
| -
| Actions to display in the header (e.g. IconButton) |
footer | React.ReactNode
| -
| Content to display below the chart |
subtitle | string
| -
| Optional subtitle or description |
loading | boolean
| false
| |
appearance | WidgetAppearance
| 'outlined'
| |
padding | string | number
| -
| Widget padding (default: 16px) |
chartHeight | string | number
| 300
| Height of the chart container |