Search code examples
javascriptd3.jstimeline

Scale of 15 years too big to see short events (of two days or so)


I have a scale that shows a timeline of 15 years. All the events are drawn as rect in that timeline and everything works fine. But when I have a short event like 2 days or so you do not see the event until you zoom in that particular timespan. Do you have any idea how I could make it seen already without zooming? Adding some days to the event to make it seen from the beginning would solve the problem only as long as I do not zoom to see the wrong timespan. Any ideas?


Solution

  • Use .append('line') instead of .append('rect') solves the problem.