UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

48 lines (47 loc) 1.33 kB
import { TextType } from '../../common/types'; import ChartAbstract, { ChartAbstractProps } from './ChartAbstract'; import ChartData from './ChartData'; import ItemLegend from './legends'; export type PieChartRow = ChartAbstractProps & { radius?: number; }; export type GaugeParams = { startLabel: TextType; endLabel: TextType; }; export type PositionType = 'startAngle' | 'centroid' | 'endAngle'; export type PieChartProps = ChartAbstractProps & { data: PieChartRow[]; hasLabels?: boolean; hasLegends?: boolean; hasTitle?: boolean; innerRadius?: number; theme?: any; startAngle?: number; endAngle?: number; padAngle?: number; labelPosition?: PositionType; gauge?: GaugeParams; minimumLabelValue?: number; padding?: number; }; export default class PieChart extends ChartAbstract { data: PieChartRow[]; hasLabels?: boolean; hasLegends?: boolean; hasTitle?: boolean; innerRadius?: number; theme?: any; startAngle?: number; endAngle?: number; padAngle?: number; gauge?: GaugeParams; minimumLabelValue?: number; chartData: ChartData[]; legendData: ItemLegend[]; chart: boolean; chartColorScale: string[]; padding?: number; constructor(props: PieChartProps); addData(...rows: PieChartRow[]): PieChart; }