Use "or" instead of ternary operator
Small readability improvement
Use the proper d3 method to define a style
Vary the position of the events