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

Re: Angular Page with multiple Graphs

Hi rfreitas,

Yes, it is possible. To do something like you can use chart.events.click to grab click event and add a plotLine based on its value.
Demo: https://jsfiddle.net/BlackLabel/joys7qep/

Let me know if that was what you were looking for!
Regards!
Mateusz Bernacik
Highcharts Developer
rfreitas
Posts: 15
Joined: Wed Aug 25, 2021 6:49 pm

Re: Angular Page with multiple Graphs

Hello,
Yes, this is what I was looking for. I get an error when I try this:

error TS2339: Property 'xAxis' does not exist on type 'PointerEventObject'.

value: event.xAxis[0].value,


Thanks.
rfreitas
Posts: 15
Joined: Wed Aug 25, 2021 6:49 pm

Re: Angular Page with multiple Graphs

You can disregard the previous message, I got the Typescript error resolved.

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

Re: Angular Page with multiple Graphs

rfreitas,

Great to hear you figured it out. In case of any further questions feel free to contact us again.

Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Usage”