Commit a94b79cb authored by qlobbe's avatar qlobbe

fixe date

parent 7d924cc1
...@@ -163,6 +163,8 @@ function drawPhylo(branches, periods, groups, links, aLinks, bLinks, frame) { ...@@ -163,6 +163,8 @@ function drawPhylo(branches, periods, groups, links, aLinks, bLinks, frame) {
/* ** draw the isoline ** */ /* ** draw the isoline ** */
console.log(periods)
d3.select('#phyloIsoLine').style("background","#EBE4DD"); d3.select('#phyloIsoLine').style("background","#EBE4DD");
var div0 = d3.select('#phyloIsoLine').node().getBoundingClientRect(), var div0 = d3.select('#phyloIsoLine').node().getBoundingClientRect(),
...@@ -258,7 +260,9 @@ function drawPhylo(branches, periods, groups, links, aLinks, bLinks, frame) { ...@@ -258,7 +260,9 @@ function drawPhylo(branches, periods, groups, links, aLinks, bLinks, frame) {
/* labels */ /* labels */
var yLabels = periods.map(p => ({y:p.y,from:p.from,to:p.to,label:(p.from).getFullYear()})); var firstDate = Math.min(...groups.map(g => (g.from).getFullYear()))
var yLabels = (periods.map(p => ({y:p.y,from:p.from,to:p.to,label:(p.from).getFullYear()}))).filter(p => p.label >= firstDate);
var xLabels = toXLabels(branches,groups,frame[2]); var xLabels = toXLabels(branches,groups,frame[2]);
/* scales */ /* scales */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment