UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

28 lines 1.01 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ChartTypes_1 = require("./ChartTypes"); const ChartAbstract_1 = require("./ChartAbstract"); class LineChart extends ChartAbstract_1.default { constructor({ chartProps, titleAxisX, titleAxisY, yMax, yMin, xAxisBolders, interpolation, showTooltipLabels, }) { super(chartProps || {}, ChartTypes_1.default.LINE_CHART, ''); this.data = []; this.legendList = []; this.titleAxisX = titleAxisX; this.titleAxisY = titleAxisY; this.yMax = yMax; this.yMin = yMin; this.xAxisBolders = xAxisBolders; this.interpolation = interpolation; this.showTooltipLabels = showTooltipLabels; } addData(...rows) { this.data = this.data.concat(rows); return this; } addLegend(...legend) { this.legendList = this.legendList.concat(legend); return this; } } exports.default = LineChart; //# sourceMappingURL=LineChart.js.map