UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

37 lines (36 loc) 1.08 kB
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 {};