From 0751e819d7417d9657fbf8c8044e608b8c7ffd76 Mon Sep 17 00:00:00 2001 From: James Hadfield Date: Wed, 31 Mar 2021 10:10:22 +1300 Subject: [PATCH] [phylotree] fix case where x-axis grid wasn't present A missed conditional resulted in certain configurations of the scatterplot "missing" the x-axis grid. (The grid was incorrectly being calculated for a temporal scale, which resulted in no meaningful grid lines.) Closes #1323 --- src/components/tree/phyloTree/grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tree/phyloTree/grid.js b/src/components/tree/phyloTree/grid.js index 32f26bf44..3952a56dd 100644 --- a/src/components/tree/phyloTree/grid.js +++ b/src/components/tree/phyloTree/grid.js @@ -242,7 +242,7 @@ export const addGrid = function addGrid() { if ( (this.layout==="scatter" && this.scatterVariables.x==="num_date") || this.layout==="clock" || - this.distance==="num_date" + (this.layout!=="scatter" && this.distance==="num_date") ) { xGridPoints = computeTemporalGridPoints(xmin, xmax, xAxisPixels, "x"); } else {