From 566910f86ef39fcaef87951c9dbdd301a2936ef3 Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Thu, 4 Apr 2024 14:15:11 +0200 Subject: [PATCH] Fix color domain with all values --- components/content/ArticleSystemDistributionPlot.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/content/ArticleSystemDistributionPlot.vue b/components/content/ArticleSystemDistributionPlot.vue index 964363b1..5e10e78f 100644 --- a/components/content/ArticleSystemDistributionPlot.vue +++ b/components/content/ArticleSystemDistributionPlot.vue @@ -139,9 +139,9 @@ const distributionOptions = computed(() => { scheme: "plasma", legend: true, reverse: true, - // domain: [0, 100], + domain: toValue(plotFill) === 'percent' ? toValue(genomePercentDomain) : toValue(genomeCountDomain), marginLeft: 10, - label: toValue(plotFill) === 'percent' ? toValue(plotLabelPercent) : toValue(plotLabelCount), + label: toValue(plotFill) === 'percent' ? toValue(plotLabelPercent) : toValue(plotLabelCount), }, width: computedWidth.value - marginRight - marginLeft, marks: [ -- GitLab