Annotation Wrap Text

Need help in implementing some specific function to your LightningChart Ultimate powered application? Post a question and get code snippets from other LightningChart Ultimate community members.

Moderator: Queue Moderators

Post Reply
BriLan
Posts: 1
Joined: Wed Nov 01, 2023 8:04 am

Annotation Wrap Text

Post by BriLan » Wed Nov 01, 2023 8:19 am

Hi,
We would like to provide our users the possibility to add annotations to their measurements results in the chart view.
Depending on the length of the characters the user enters, the width of the annotation can be very long. Is there any AnnotationBase Class property or other possibility to wrap the annotation text?
Thank you very much in advanced.

ArctionKestutis
Posts: 555
Joined: Mon Mar 14, 2016 9:22 am

Re: Annotation Wrap Text

Post by ArctionKestutis » Wed Nov 01, 2023 3:02 pm

You can use StringBuilder class to create multi-line text (see ExampleCursorTrackingXY from our Demo) or just insert NewLine character in your string.

Post Reply