Niceley
Posts: 47
Joined: Fri May 06, 2022 7:28 am

Overlay of date on the timeline

Hello, i don't know if the answer already exist but is there a way to overpass the overlay of date on the timeline ( Multiple date of the same day / year ), when i pass my mouse on the green label, it still shows me the tooltip of the yellow one.

Exemple
Image
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Overlay of date on the timeline

Hi Niceley,

Thanks for contacting us with your question.

Please create a live demo with the issue. You can start here:
https://jsfiddle.net/BlackLabel/hbnwpk9u/

Regards!
Mateusz Bernacik
Highcharts Developer
Niceley
Posts: 47
Joined: Fri May 06, 2022 7:28 am

Re: Overlay of date on the timeline

Hello, thanks for your anwser.
I've copied an exemple of my problem on the jsfiddle. As you can see on 1863 (my date is composed of only year), even if i pass the mouse on the blue label it still shows me the black tooltips.
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Overlay of date on the timeline

Niceley,

Please fork the demo and provide me with the link. The fork button is located in top navbar of the page.

Regards!
Mateusz Bernacik
Highcharts Developer
Niceley
Posts: 47
Joined: Fri May 06, 2022 7:28 am

Re: Overlay of date on the timeline

Oh sorry, i thought would be still the same.
Here's the link : https://jsfiddle.net/p7dbya9u/6/
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Overlay of date on the timeline

Niceley,

Thanks for the demo.

By default tooltip is displayed for hovered point. Tooltip doesn't show on point's label hover. As a solution, in case when multiple points have the same x value (year), you can use tooltip.formatter to show information about all those points in the tooltip.
Demo:https://jsfiddle.net/BlackLabel/so6kbtzp/
API reference:https://api.highcharts.com/highcharts/tooltip.formatter

Let me know what do you think about this solution.

Regards!
Mateusz Bernacik
Highcharts Developer
Niceley
Posts: 47
Joined: Fri May 06, 2022 7:28 am

Re: Overlay of date on the timeline

Hello, thanks for the anwser.
I used another solution. I created a var Month add +2 every time and when it reach 10, it reset to 0.
Still thanks for the help !
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Overlay of date on the timeline

You're welcome! In case of any further questions, feel free to contact us again.
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”