Hi everyone, I am working on my first d3 project, a timeline visualization. In some of the data I'm feeding it, events are very close to each other so that they overlap--I've created a simplified version in this fiddle:
https://jsfiddle.net/s4wrs7g8/1/Each dot should be accessible with the cursor, to show a tooltip or click on the event to reveal more information, but often they are too close together.
I've thought about how to tackle this.. obviously from an Infovis point of view, I'd want each dot to represent exactly the time point that it is linked to, as opposed to just shifting it away from its neighbour by default. Maybe they could move apart on mouseover with a nice transition, but I'm not sure how I would detect the dots' overlap and furthermore, this would interfere with the tooltip. Any ideas/solutions much appreciated!