Allow to choosing the position of labels in the line/rect annotation

Posted by: Yifan_Zhang on 20 May 2025, 4:54 pm EST

  • Posted 20 May 2025, 4:54 pm EST

    Currently, the content/label of the line/rectangle annotation is always at the center. We would like to have the capability of showing the labels at different positions, like on the left or right side. Could you help us with this request? Thanks.

  • Posted 21 May 2025, 8:25 am EST

    Hi Yifan,

    For now, there is such default feature available in the FlexChart annotation to set the position of the annotation text. However, you can handle the ‘refreshed’ event of the chart and adjust the text position as per your needs. Here’s a sample for your reference - https://stackblitz.com/edit/js-y4akb7hy?file=index.js

    You can follow a similar approach in your project. In case, you face any issues, you can let us know.

    Regards

  • Posted 21 May 2025, 12:13 pm EST

    I understand the workaround. But is there a genuine solution so that the position of the text becomes a property of the annotation?

  • Posted 22 May 2025, 6:14 am EST

    Hi Yifan,

    As we mentioned, this feature is not yet supported in FlexChart Annotations. However, we have created an enhancement request to support this feature. The internal tracking ID for the same is - WJM-36175.

    For now, you can use the workaround we shared, we will let you know when we have an update on the enhancement request. In case, you face any issues with the workaround, you can let us know.

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels