Black Lives Matter. Please consider donating to Black Girls Code today.
Dash Enterprise delivers an incredible 21x cost savings 💸Download the e-book!

Annotated heatmap text center justified on chart creation but moves when exported

I have an annotated heatmap that looks fine when created but the text moves when I export to png.
Is there any option to center justify heatmap annotations to stop this from happening? See pic below.

Thanks,
Matt

Yikes.

Can you share your graph’s URL or a reproducible code snippet?

Yep

https://plot.ly/~matt.dabic/425/tpi-rbs-219kp-node-25/

Thanks!

setting the horizontal text anchor (the xanchor attribute) to 'left' should do the trick

Here’s what that gave me: https://plot.ly/~etpinard/7411/tpi-rbs-219kp-node-25.embed

Thanks Etienne that’s worked.
The native polt.ly version of the graph now looks wrong but the export is correct - which is what I’m after.

Thanks again!