Than to draw the time axis in the javascript?

I have to draw the line, meaning time. Direct to highlight some important points (dates) and make captions. Point should be able to track click on them.
Plus need to be able to navigate through the time axis. Suppose either that the axis needs to move right/left relative to the fixed marker. Either should be roaming the marker denoting the moment.
I think the first option is preferable.

Prompt, please, suitable library.

UPD: the Colleague advised googling "timeline slider". The pre - very similar to what is required.
July 9th 19 at 10:14
2 answers
July 9th 19 at 10:16
Solution
d3.js
July 9th 19 at 10:18
SVG is good for that
SVG is just markup language, and I need a js library that will help solve the problem.
To create your bike - this is not an option. - marce commented on July 9th 19 at 10:21
: SVG + JS solves your problem in a couple of hours on the development of libraries will take more time. - candida_Upton commented on July 9th 19 at 10:24
: silly. - Allene_Crona78 commented on July 9th 19 at 10:27
: If you find it difficult to connect in a meaningful method code 3 setAttributeNS(ns, nm, vl), svg.querySelector and document.createElementNS(svgns, nm), then you are absolutely right. I say nonsense! - candida_Upton commented on July 9th 19 at 10:30
: you forgot about addEventListener - Allene_Crona78 commented on July 9th 19 at 10:33

Find more questions by tags JavaScript