glundgren93
Posts: 18
Joined: Tue Oct 25, 2022 7:25 am

Is there a way to show points outside of min/max boundary?

Hello,

I'm trying to create a chart with a limited boundary on the x and y axis, meaning that I want to plot points that are within the min and max values. But I also don't want to discard the points outside this limit. I want to show an arrow pointing to the out-of-bounds points. Is there an easy way to do this?

I managed to create an arrow with the SVG renderer, but I'm having difficulty placing the arrow in the correct spot with the proper angle.
https://jsfiddle.net/glundgren/x7Lnsq0r/100/
User avatar
dawid.d
Posts: 807
Joined: Thu Oct 06, 2022 11:31 am

Re: Is there a way to show points outside of min/max boundary?

Hello,

Thanks for contacting us with your question!

Should points outside the circle not be displayed? If so, I suggest changing their visible parameter to false in the load. Then, in the render event, mathematically calculate the position and rotation of the arrows, as shown in the demo below.

Demo: https://jsfiddle.net/BlackLabel/c9sq2wku/

If any glitches arise please inform us as soon as possible.
Best regards!
Dawid Draguła
Highcharts Developer
glundgren93
Posts: 18
Joined: Tue Oct 25, 2022 7:25 am

Re: Is there a way to show points outside of min/max boundary?

It worked perfectly! Thank you
User avatar
dawid.d
Posts: 807
Joined: Thu Oct 06, 2022 11:31 am

Re: Is there a way to show points outside of min/max boundary?

You're welcome! In case of any further questions, feel free to contact us again.
Regards!
Dawid Draguła
Highcharts Developer

Return to “Highcharts Usage”