I'm trying to develop a timeline chart using D3
libary with zoom
and pan
options. Here is the jsfiddle - https://jsfiddle.net/avavzgLy/.
I'm able to zoom and pan only when I hover on x axis ticks or over Circles
in the chart. How can I allow zooming and panning by hovering anywhere on the chart. Also while zooming/panning, the circles inside chart is still getting displayed when it reaches x axis domain range and gets disappeared only when it reaches svg width.