directive to draw timeline graphs