UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

29 lines (28 loc) 1.09 kB
import ChartAbstract, { ChartAbstractProps, Legend } from './ChartAbstract'; import ChartData from './ChartData'; import ItemLegend from './legends'; export type StackedVerticalBarChartRow = ChartAbstractProps; export type StackedVerticalBarChartProps = ChartAbstractProps & { chartProps: ChartAbstractProps; isClickable?: boolean; titleAxisX?: string; titleAxisY?: string; data?: StackedVerticalBarChartRow[][]; legendList?: Legend[]; showLegend: boolean; }; export default class StackedVerticalBarChart extends ChartAbstract { data: StackedVerticalBarChartRow[][]; legendList: Legend[]; titleAxisX?: string; titleAxisY?: string; chartData: ChartData[]; legendData: ItemLegend[]; rules: Legend[]; chart: boolean; showLegend?: boolean; chartColorScale: string[]; constructor({ titleAxisX, titleAxisY, chartProps, data, legendList, showLegend, }: StackedVerticalBarChartProps); addData(...rows: StackedVerticalBarChartRow[][]): StackedVerticalBarChart; addLegend(...legend: Legend[]): StackedVerticalBarChart; }