I’m am adding annotations to a pie chart dynamically via capturing the plotly_click event. I am trying to use the data.points[0].cx/cy values as the x and y coordinates for setting the annotation but the annotation position is defaulting to the center of the pie chart, which is fine as the editable flag is enabled so the user can move the annotation to where they desire. The problem is when I am capturing the plotly_relayout event and print the event changes to the console, no matter where the annotation point is moved (x/y, not ax/ay) it resets the x/y back to the center position in the chart.
Is there a way to tie the annotation to the canvas coordinates instead of the plot? Although, not sure if that would work because of redrawing the plot for responsive behavior.
CodePen example
Thanks,
Marcus