Fix for #6
EventCapture
has a required property mainChart
. The xScale
of that chart is used to determine where the mouse pointer is and by how much a zoom or pan has occured.
In this example EventCapture
is not present and so mainChart
is undefined leading to this issue. This fix takes the first Chart
as the mainChart
if EventCapture
is not defined