UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

40 lines (39 loc) 1.11 kB
import { TextType } from '../../common/types'; import ChartAbstract, { ChartAbstractProps } from './ChartAbstract'; 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; }; 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; constructor(props: PieChartProps); addData(...rows: PieChartRow[]): PieChart; }