Skip to content

Commit a3fc3b8

Browse files
Merge pull request #216 from woahdae/remove-unused-multi-chart-code
Remove a bit of unused code in multichart logic
2 parents f2ac1b1 + 3ccc7fb commit a3fc3b8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/index.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -640,16 +640,9 @@ Dataviz.prototype.render = function(results = undefined){
640640
return datavizInstance
641641
.data(results[0])
642642
.call(() => {
643-
const getLabel = (input) => {
644-
return `${input.query.event_collection} ${input.query.analysis_type}`;
645-
}
646-
let label = getLabel(results[0]);
647-
if (datavizInstance.config.labelMapping[label]) {
648-
label = datavizInstance.config.labelMapping[label];
649-
}
650643
this.dataset.deleteColumn(1);
651644
for (let result of results) {
652-
label = getLabel(result);
645+
let label = `${input.query.event_collection} ${input.query.analysis_type}`;
653646
let ds2 = Dataset.parser('interval')(result);
654647
datavizInstance.dataset.appendColumn(label, ds2.selectColumn(1).slice(1));
655648
}

0 commit comments

Comments
 (0)