prodap-chatbot-domain
Version:
Classes utilizadas na resposta de todas as Intents do Assistente Virtual
23 lines • 815 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const ChartTypes_1 = require("./ChartTypes");
const ChartAbstract_1 = require("./ChartAbstract");
class StackedVerticalBarChart extends ChartAbstract_1.default {
constructor({ titleAxisX, titleAxisY, chartProps }) {
super(chartProps, ChartTypes_1.default.STACKED_VERTICAL_BAR_CHART, '');
this.data = [];
this.legendList = [];
this.titleAxisX = titleAxisX;
this.titleAxisY = titleAxisY;
}
addData(...rows) {
this.data = this.data.concat(rows);
return this;
}
addLegend(...legend) {
this.legendList = this.legendList.concat(legend);
return this;
}
}
exports.default = StackedVerticalBarChart;
//# sourceMappingURL=StackedVerticalBarChart.js.map