import { BarChartRule } from './BarChart'; import ChartAbstract, { ChartAbstractProps } from './ChartAbstract'; import ItemLegend from './legends'; export type StackedBarChartItem = ChartAbstractProps; type StackedBarChartAppDataType = { data: Array<{ label: string; value: number; color: string; subLabel?: string; }>; type?: string; }; export type StackedBarChartProps = ChartAbstractProps & { rules?: BarChartRule[]; chart?: boolean; chartColorScale?: string[]; titleAxisX?: string; titleAxisY?: string; showLegend?: boolean; data?: StackedBarChartItem[]; }; export default class StackedBarChart extends ChartAbstract { data: StackedBarChartItem[]; chartData: StackedBarChartAppDataType; legendData: ItemLegend[]; rules: BarChartRule[]; chart: boolean; chartColorScale: string[]; titleAxisX?: string; titleAxisY?: string; showLegend: boolean; constructor(chartProps: StackedBarChartProps); addData(rows: StackedBarChartItem[]): StackedBarChart; } export {};