Hello,
I have a stockchart that consists of 2 line charts.
Here is a working fiddle link: https://jsfiddle.net/mustadirmahmood/re8qdzc9/1/
In the two charts, some of their x coordinates match and some do not.
For example,
if chart 1 has coordinates {x: 2, y: any_random_number}, {x: 4, y: any_random_number}, {x: 6, y: any_random_number}
& chart 2 has coordinates {x: 3, y: any_random_number}, {x: 5, y: any_random_number}, {x: 6, y: any_random_number}
so the first 2 points have different x coordinates but the last one has same x coordinate of 6.
When user hovers over chart 1 at point with x-coordinate = 6, two tooltips are shown showing the coordinates of each chart.
ex. https://imgur.com/a/tRuEcCv
but when user hovers over chart 1 at point with x-coordintate = 2, then only one tooltip is shown in chart 1, and no tooltip is shown for chart 2 since x = 2 does not exist in chart 2. ex. https://imgur.com/E1F0bNF
How can I show tooltip in both charts even if their coordinates do not match at that point?
If not can we show the closest coordinate as tooltip in the other chart?