Skip to content
Permalink
Browse files

Merge pull request #725 from nextstrain/fiveMinorTicks

src/components/tree/phyloTree/grid.js:
  • Loading branch information...
trvrb committed May 16, 2019
2 parents 66279c2 + 62b63cd commit 2a042d9c6aa943c8d1559063f9b1b0cee642183b
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/components/tree/phyloTree/grid.js
@@ -77,7 +77,10 @@ export const addGrid = function addGrid() {
const pos = gridMin + step*ii;
majorGridPoints.push([pos, ((pos<minVis)||(pos>maxVis))?"hidden":"visible", "x"]);
}
const numMinorTicks = this.distanceMeasure === "num_date" ? this.params.minorTicksTimeTree : this.params.minorTicks;
let numMinorTicks = this.distanceMeasure === "num_date" ? this.params.minorTicksTimeTree : this.params.minorTicks;
if (step===5 || step===10) {
numMinorTicks = 5;
}
const minorStep = step / numMinorTicks;
for (let ii = 0; ii <= (xmax - gridMin)/minorStep+30; ii++) {
const pos = gridMin + minorStep*ii;

0 comments on commit 2a042d9

Please sign in to comment.
You can’t perform that action at this time.