From 66d531b96b05470ccb01ddac196ee183472442ce Mon Sep 17 00:00:00 2001
From: Remi  PLANEL <rplanel@pasteur.fr>
Date: Mon, 12 Feb 2024 16:07:51 +0100
Subject: [PATCH] udpate

---
 components/LayoutWrapper.vue               |  2 +-
 components/content/RefseqDb.vue            | 22 ++++++++++++----------
 deploy/meilisearch/values.development.yaml |  2 +-
 3 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/components/LayoutWrapper.vue b/components/LayoutWrapper.vue
index 547650d6..60f8f7a6 100644
--- a/components/LayoutWrapper.vue
+++ b/components/LayoutWrapper.vue
@@ -54,7 +54,7 @@ function onScroll() {
       <v-container v-scroll="onScroll" :fluid="fluid">
         <v-row justify="center">
           <v-col cols="auto" class="pa-0">
-            <v-card flat color="transparent" :min-width="mobile ? undefined : 900" :max-width="fluid ? undefined : 1500">
+            <v-card flat color="transparent" :min-width="mobile ? undefined : 900" :max-width="fluid ? undefined : 1280">
               <v-card-text class="pa-0">
                 <slot />
               </v-card-text>
diff --git a/components/content/RefseqDb.vue b/components/content/RefseqDb.vue
index 91e0d266..9f4a2cdd 100644
--- a/components/content/RefseqDb.vue
+++ b/components/content/RefseqDb.vue
@@ -322,22 +322,24 @@ function namesToAccessionChips(names: string[]) {
 }
 const systemPanel: Ref<string[]> = ref([])
 const layoutPlot: Ref<string> = ref("grid")
-const binPlotOptions = ref({
-    marginLeft: 150,
-    marginBottom: 200,
-    padding: 0,
-    grid: true,
-    x: { tickRotate: 90, tip: true, label: "Systems" },
-    // y: { tickFormat: 's' },
-    color: { scheme: "plasma", legend: true, domain: [0, 100] },
+const binPlotOptions = computed(() => {
+    return {
+        marginLeft: 150,
+        marginBottom: 200,
+        padding: 0,
+        grid: true,
+        x: { tickRotate: 90, label: "Systems" },
+        // y: { tickFormat: 's' },
+        color: { scheme: "plasma", legend: true, label: `Proportion of genomes with defense system X for a given ${selectedTaxoRank.value} clade`, domain: [0, 100] },
+    }
 })
 
 
 const binPlotGroup = computed(() => {
     return Plot.group(
         {
+            label: (d) => d.fill,
             fill: {
-                label: `Normalize by ${selectedTaxoRank.value} clade`,
                 reduceIndex: function (I, X) {
                     const toValTaxonomyFacet = toValue(taxonomyFacet)
                     if (toValTaxonomyFacet !== undefined) {
@@ -380,7 +382,7 @@ const binPlotDataOptions = computed(() => {
 
         },
         marks: [
-            Plot.cell(data, toValue(binPlotGroup))
+            Plot.cell(data, toValue(binPlotGroup)),
         ]
 
     } : null
diff --git a/deploy/meilisearch/values.development.yaml b/deploy/meilisearch/values.development.yaml
index d5702707..2d19040e 100644
--- a/deploy/meilisearch/values.development.yaml
+++ b/deploy/meilisearch/values.development.yaml
@@ -9,7 +9,7 @@ meilisearch:
   persistence:
     enabled: true
     storageClass: isilon
-    size: "3Gi"
+    size: "4Gi"
   resources: 
     limits:
       cpu: 2000m
-- 
GitLab