Skip to content

Commit

Permalink
[phyloTree] Tweak grid display parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
trvrb authored and jameshadfield committed Nov 18, 2020
1 parent becfaad commit 3a3f111
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 @@ -115,7 +115,7 @@ const computeDivergenceGridPoints = (xmin, xmax, layout, minorTicks) => {
*/
const calculateTemporalGridSeperation = (timeRange, pxAvailable) => {
const [majorStep, minorStep] = [{unit: "DAY", n: 1}, {unit: "DAY", n: 0}];
const minPxBetweenMajorGrid = (pxAvailable < 1200 ? 200 : 300);
const minPxBetweenMajorGrid = (pxAvailable < 1000 ? 130 : 180);
const timeBetweenMajorGrids = timeRange/(Math.floor(pxAvailable / minPxBetweenMajorGrid));
const levels = {
CENTURY: {t: 100, max: undefined},
Expand Down

0 comments on commit 3a3f111

Please sign in to comment.