diff --git a/components/content/ArticleSystemDistributionPlot.vue b/components/content/ArticleSystemDistributionPlot.vue index 2b843af7cd5c62760118acb5ee1486aba34fc6c7..767c5160d5663ed483ae4649753cbdb8e7c87b19 100644 --- a/components/content/ArticleSystemDistributionPlot.vue +++ b/components/content/ArticleSystemDistributionPlot.vue @@ -44,17 +44,12 @@ const computedDistribution = computed(() => { const toValSystemHits = toValue(systemHits) const toValRefseqTaxo = toValue(refseqTaxo) if (toValSystemHits?.hits && toValSelectedTaxoRank && toValRefseqTaxo?.facetDistribution) { - console.log(toValRefseqTaxo) const toValFacetsPerRank = toValRefseqTaxo.facetDistribution?.[toValSelectedTaxoRank] // group per selected taxo rank and accession const itemsPerGroup = d3.rollup(toValSystemHits.hits, D => D.length, d => d[toValSelectedTaxoRank], d => d.Assembly) - console.log(itemsPerGroup) - if (toValSelectedTaxoRank === "order") { - console.log(itemsPerGroup.get("Oscillatoriales")) - } + const distribution = [] for (const [taxo, values] of itemsPerGroup.entries()) { - console.log(toValFacetsPerRank[taxo]) if (toValFacetsPerRank[taxo] && toValFacetsPerRank[taxo] > 0) { distribution.push({ taxo, size: (values.size / toValFacetsPerRank[taxo]) * 100 }) } @@ -113,7 +108,6 @@ const distributionOptions = computed(() => { }; }) -console.log(computedDistribution) // ================================================= // ASYNC PART