UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

43 lines (42 loc) 1.28 kB
import { BarChartRule } from './BarChart'; import ChartAbstract, { ChartAbstractProps } from './ChartAbstract'; import ChartData from './ChartData'; import ItemLegend from './legends'; export interface BarChartGroupsRow extends ChartAbstractProps { label: string; values: number[]; } export interface BarChartGroupRule { color: string; label: string; valMax: number; valMin: number; } export interface BarChartGroupProps extends ChartAbstractProps { barWidth?: number; chartProps: ChartAbstractProps; titleAxisX?: string; titleAxisY?: string; minimumBars?: number; legendData?: ItemLegend[]; chartData: ChartData[]; rules?: BarChartRule[]; chartColorScale?: string[]; data?: BarChartGroupsRow[]; groupData: ChartData; } export default class BarChartGroup extends ChartAbstract { barWidth?: number; data: BarChartGroupsRow[]; rules: BarChartRule[]; chartColorScale: string[]; legendData: ItemLegend[]; chartData: ChartData[]; titleAxisX?: string; titleAxisY?: string; minimumBars?: number; groupData: ChartData; constructor(props: BarChartGroupProps); addData(...rows: BarChartGroupsRow[]): BarChartGroup; addRule(...rules: BarChartRule[]): BarChartGroup; }