Skip to content

Commit

Permalink
[phylotree] fix case where x-axis grid wasn't present
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jameshadfield committed Mar 30, 2021
1 parent 946e210 commit 0751e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tree/phyloTree/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0751e81

Please sign in to comment.