jackytanjq
Posts: 33
Joined: Mon Jul 26, 2021 2:53 am

Measure XY wrong position after customizing setting

Hello Highcharts,
Kindly assist to check if this Measure XY annotation reverting to its first drawn position after customizing the setting instead of following the last known position is an issue?

The short clip taken below is tested using this Jsfiddle:
https://jsfiddle.net/gh/get/library/pur ... thresholds
Highcharts_MeasureXY_OnSave_WrongPos.gif
Highcharts_MeasureXY_OnSave_WrongPos.gif (156.38 KiB) Viewed 200 times

If it is an issue, is there a fix for this?
jakub.s
Posts: 1222
Joined: Fri Dec 16, 2022 11:45 am

Re: Measure XY wrong position after customizing setting

Hi,

Thanks for the question!

You're right, to me it seems like a bug as well. I've reported it on GitHub here: https://github.com/highcharts/highcharts/issues/19121 where you can track its progress.

For now, I've prepared a simple fix by overriding the Measure Annotation update function: https://jsfiddle.net/BlackLabel/gx0obzyc/

Please check this out and let me know if everything works as expected.

Best regards!
Jakub
Highcharts Developer

Return to “Highcharts Stock”