/** Renders grouped/stacked/distributed bars from `series`, or one series from `data`+`seriesName`; not a substitute for ApexLineChart on trend-over-time data. */ export type ApexBarChartProps = { /** Ignored whenever `series` is also passed — series wins outright and data is silently dropped, not merged. */ data?: number[]; /** Category labels, one per bar or bar group; they run along the vertical axis when `horizontal` is true. */ labels: string[]; /** Heading above the chart, aligned by `titlePosition`. */ title?: string; /** No default here (renders ApexCharts' native left-align) — pie, line and polar charts default it to "center", area and radial to "left". */ titlePosition?: "left" | "center" | "right"; /** Chart height as a px number or CSS string. Defaults to 400; also sizes the loading skeleton. */ height?: number | string; /** Chart width as a px number or CSS string. Defaults to 500; also sizes the loading skeleton. */ width?: number | string; /** Array paints per-bar only when `distributed` is true; otherwise only barColor[0] applies and the rest are silently unused. */ barColor?: string[]; /** Font and colour of x-axis labels; colour falls back to the theme's axis ink. */ xAxisStyle?: StyleProps; /** Font and colour of y-axis labels; colour falls back to the theme's axis ink. */ yAxisStyle?: StyleProps; /** Font and colour of the title; unset fields default to 14px, weight 600 and the theme's text ink. */ titleStyle?: StyleProps; /** Draws bars left to right instead of upward. Defaults to false. */ horizontal?: boolean; /** Gives each bar its own colour from `barColor` or the theme palette. Defaults to false (one colour). */ distributed?: boolean; /** Name of the single series built from `data`. Defaults to "Data"; ignored when `series` is passed. */ seriesName?: string; /** Multi-series bars — {name, data}[], not data's flat number[]; passing this alongside `data` makes data a no-op. */ series?: { name: string; data: number[]; }[]; /** Stacks `series` on top of each other instead of grouping them side by side. Defaults to false. */ stacked?: boolean; /** Unset default isn't fixed — shows only when `series` has more than one entry; the single-`data` path stays legend-less. */ showLegend?: boolean; /** Legend placement. Defaults to "bottom". */ legendPosition?: "top" | "right" | "bottom" | "left"; }; type StyleProps = { /** CSS font size, e.g. "12px". Axis labels default to 12px, the title to 14px. */ fontSize?: string; /** CSS font family. Defaults to inherit, i.e. the page font. */ fontFamily?: string; /** CSS font weight. The title defaults to 600. */ fontWeight?: string | number; /** Text colour. Defaults to the theme's axis ink on axes and its text ink on the title. */ color?: string; }; export {};