PPC
Posts: 4
Joined: Tue May 24, 2022 12:17 pm

Annotation show connection line always

Hi
Is it possible to have annotation of type 'callout' always draw a the line instead of the callout arrow?
I found the 'rect' but this does not have any line connecting back to the point.

I don't like to offset the annotation to the right or left just to draw the line.

The main problem is on multiple point on the y-axis you can't identify the right point when exported.


Fiddle: https://jsfiddle.net/4eun1tLd/43/

Probably this image make it more clear:
Screenshot 2022-09-30 113339.png
Screenshot 2022-09-30 113339.png (57.54 KiB) Viewed 197 times
Thanks in advance
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Annotation show connection line always

Hi there,

Thank you for contacting us!

In that case, I think that the best idea would be to use the annotations.labelOptions.shape: 'connector', and then style the label itself however you want. That way, the connecting like will always be visible.

Have a look at the simple demo: https://jsfiddle.net/BlackLabel/zxw9p0uh/

Do not hesitate to contact us with any further requests!
Kamil Musiałowski
Highcharts Developer
PPC
Posts: 4
Joined: Tue May 24, 2022 12:17 pm

Re: Annotation show connection line always

Thank you for your fast answer!
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Annotation show connection line always

You're welcome!

Do not hesitate to contact us with any further questions,
Regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”