From 1aa37efe7b426a2d432822af7cacac69fbb3373b Mon Sep 17 00:00:00 2001 From: Angelos Chatzimparmpas Date: Sun, 3 Jan 2021 09:58:00 +0100 Subject: [PATCH] new --- frontend/src/components/Heatmap.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Heatmap.vue b/frontend/src/components/Heatmap.vue index 01d3041..31f8fa4 100644 --- a/frontend/src/components/Heatmap.vue +++ b/frontend/src/components/Heatmap.vue @@ -71,6 +71,7 @@ export default { svg.selectAll("*").remove(); var featureUni = JSON.parse(this.dataFI[0]) + var featuresFinal = this.featureData[33] var algorithms = [] algorithms.push("Univariate FS") @@ -129,14 +130,22 @@ export default { values[j] = -3 } else { - values[j] = -4 + if (featuresFinal.includes(Features[i])) { + values[j] = -2 + } else { + values[j] = -4 + } } } else { if (i == 0 || i == 1 || i == 2) { values[j] = -3 } else { - values[j] = -4 + if (featuresFinal.includes(Features[i])) { + values[j] = -2 + } else { + values[j] = -4 + } } } } @@ -311,7 +320,6 @@ export default { d3.select('#colLabel_' + i).classed("hover", false); }) .on("click", function(d, i) { - console.log(d) colSortOrder = !colSortOrder; sortByValues("c", i, colSortOrder); d3.select("#order").property("selectedIndex", 3);