From 1888722356689d56f20ccd211e9322c9928c945e Mon Sep 17 00:00:00 2001
From: Remi  PLANEL <rplanel@pasteur.fr>
Date: Wed, 3 Apr 2024 17:46:16 +0200
Subject: [PATCH] revese color map for refseq and distri taxo system

---
 components/content/ArticleSystemDistributionPlot.vue | 2 +-
 components/content/RefseqDb.vue                      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/content/ArticleSystemDistributionPlot.vue b/components/content/ArticleSystemDistributionPlot.vue
index e214cb2f..c644c73c 100644
--- a/components/content/ArticleSystemDistributionPlot.vue
+++ b/components/content/ArticleSystemDistributionPlot.vue
@@ -104,7 +104,7 @@ const distributionOptions = computed(() => {
         ...toValue(margin),
         y: { label: `% of genomes encoding ${toValue(page)?.title ?? 'the system'}` },
         x: { label: selectedTaxoRank.value, tickRotate: 45 },
-        color: { scheme: "plasma", legend: true, domain: [0, 100], marginLeft: 10, label: "percentage" },
+        color: { scheme: "plasma", legend: true, reverse: true, domain: [0, 100], marginLeft: 10, label: "percentage" },
         width: computedWidth.value - marginRight - marginLeft,
         marks: [
             Plot.barY(
diff --git a/components/content/RefseqDb.vue b/components/content/RefseqDb.vue
index b287ba87..5c4e5048 100644
--- a/components/content/RefseqDb.vue
+++ b/components/content/RefseqDb.vue
@@ -351,7 +351,7 @@ const binPlotOptions = computed(() => {
         grid: true,
         aspectRatio: height ? undefined : 1,
         x: { tickRotate: 90, label: "Systems", domain: toValue(sortedCellDomain) },
-        color: { scheme: "plasma", legend: true, label: `Proportion per ${selectedTaxoRank.value}`, domain: [0, 100] },
+        color: { scheme: "plasma", legend: true, reverse: true, label: `Proportion per ${selectedTaxoRank.value}`, domain: [0, 100] },
     }
 })
 
-- 
GitLab