My problem is that I didn't find any solution so far that could display the crosshair across my charts synchronusly. Although, I found a solution for my problem here:
https://www.syncfusion.com/forums/164787/synchronise-crosshair-trackball-in-multiple-charts
but it display the crosshairs using pixelisations. I need a solution where I could draw the crosshairs by X coordinates simultaneously (where X is a date)
public syncronisedCrosshair(args: IMouseEventArgs, id: string): void {
if(id == "charts"){
this.mousemoveEvent( document.getElementById("charts1"), args.x, window.screenTop+0, args.x, window.screenTop+90-window.scrollY);
this.mousemoveEvent( document.getElementById("charts2"), args.x, window.screenTop+0, args.x, window.screenTop+610-window.scrollY);
this.mousemoveEvent( document.getElementById("charts3"), args.x, window.screenTop+0, args.x, window.screenTop+920-window.scrollY);
this.mousemoveEvent( document.getElementById("charts4"), args.x, window.screenTop+0, args.x, window.screenTop+1230-window.scrollY);
this.mousemoveEvent( document.getElementById("charts5"), args.x, window.screenTop+0, args.x, window.screenTop+1540-window.scrollY);
}
}
private mousemoveEvent(element, sx, sy, cx, cy) {
let mousemove = document.createEvent("MouseEvent");
mousemove.initMouseEvent( "mousemove", true, false, window, 1, sx, sy, cx, cy, false, false, false, false, 0, null);
element.dispatchEvent(mousemove);
}