From 066d1e1515a1a802aa377d2b35d560bd0eb728f3 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:57:45 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Convert=20RGBColor=20to=20hex=20?= =?UTF-8?q?string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not sure what value was being used previously. I should check... --- src/util/colorScale.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/colorScale.ts b/src/util/colorScale.ts index 1c1252908..a1b59fcc1 100644 --- a/src/util/colorScale.ts +++ b/src/util/colorScale.ts @@ -183,13 +183,13 @@ function createScaleForGenotype( const range = [unknownColor, ...genotypeColors.slice(0, trueValues.length)]; // Bases are returned by orderOfGenotypeAppearance in order, unknowns at end if (legendValues.indexOf("-") !== -1) { - range.push(rgb(217, 217, 217)); + range.push(rgb(217, 217, 217).formatHex()); } if (legendValues.indexOf("N") !== -1 && !aaGenotype) { - range.push(rgb(153, 153, 153)); + range.push(rgb(153, 153, 153).formatHex()); } if (legendValues.indexOf("X") !== -1) { - range.push(rgb(102, 102, 102)); + range.push(rgb(102, 102, 102).formatHex()); } return { colorScale: scaleOrdinal().domain(domain).range(range),