data | any[]
| -
| |
config | ChartConfig
| -
| Chart configuration for colors and labels |
dataKeys | string | string[]
| -
| The key(s) to use for the bar values. If multiple, multiple bars will be rendered per category. |
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 |
barSize | number
| 32
| |
radius | [number, number, number, number]
| [4, 4, 0, 0]
| Custom radius for the bars [top-left, top-right, bottom-right, bottom-left] |
showLegend | boolean
| false
| Whether to show a legend below the chart. Defaults to false. |
barChartProps | any
| -
| Any additional props to pass to the Recharts BarChart 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 |