Made with d3.annotation. An example showing how you can dynamically change the annotation type and add hover events.