cocuydev
Posts: 4
Joined: Thu Oct 28, 2021 2:08 am

How to add plotlines in multiples charts

Good evening support team! Is it possible to add plotlines on multiple charts? What I want to do is that in the first chart (the one with the red background) when I click on a point in the series to display a plotline, the same plotline is dynamically displayed in the next chart. Is it possible to do that? I hope I have explained well, thanks!

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

Re: How to add plotlines in multiples charts

Hi cocuydev,

Welcome to our forum and thanks for contacting us with your question!

Yes, something like that is possible. There are few ways to achieve such effect but general idea is to call a second chart's update in appropriate event of a first chart, in this case point.click event.
Demo: https://jsfiddle.net/BlackLabel/097ndbfu/

Let me know if you have any further questions!
Best regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”