jiahuang / d3-timeline

Simple JS timeline plugin for d3
1.03k stars 281 forks source link

Using relativeTime() together with ending() causes hang #84

Open geekman opened 8 years ago

geekman commented 8 years ago

I'm not sure what's causing it, but trying to specify a end date/time while using relativeTime() will cause it (and the browser) to hang.

Minimized test case as follows, by modifying the example html:

var data = [
{times: [{starting_time: 1466100000000, ending_time: 1466100000000}]},
];

var width = 600;
var chart = d3.timeline()
             .ending(1466100000000)
             .relativeTime();

var svg = d3.select("#timeline1").append("svg").attr("width", width)
            .datum(data).call(chart);